CID-471: add docs

This commit is contained in:
Anton Chuchkalov 2016-03-16 21:39:19 +02:00
parent 7fb5862f85
commit cfd25be46a

View File

@ -423,6 +423,7 @@ module Provider
# When you create an instance with with ephemeral storages available within AWS console, # When you create an instance with with ephemeral storages available within AWS console,
# they are mapped automatically. But in case of creating within API we should map them manually. # they are mapped automatically. But in case of creating within API we should map them manually.
# Result example: [{'VirtualName' => 'ephemeral0', 'DeviceName' => '/dev/xvdb'}]
def ephemeral_storages_mappings(flavor) def ephemeral_storages_mappings(flavor)
require 'fog/aws/models/compute/flavors' require 'fog/aws/models/compute/flavors'
details = Fog::Compute::AWS::FLAVORS.detect {|f| f[:id] == flavor} details = Fog::Compute::AWS::FLAVORS.detect {|f| f[:id] == flavor}