Sha256: 2ec79a691602e410b1759ee64893b86a77ee13828fe14810e6ca99a4038dc724
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
module Fog module Compute class RackspaceV2 class Real def create_server(name, image_id, flavor_id, min_count, max_count, options = {}) data = { 'server' => { 'name' => name, 'imageRef' => image_id, 'flavorRef' => flavor_id, 'minCount' => min_count, 'maxCount' => max_count } } data['server']['diskConfig'] = options[:disk_config] unless options[:disk_config].nil? request( :body => Fog::JSON.encode(data), :expects => [202], :method => 'POST', :path => "servers" ) end end end end end
Version data entries
4 entries across 4 versions & 3 rubygems