Sha256: 93d7ffcd3a825d46c70ad97e3ee95311e970823e289f765fa3f257dcc1d1bc18
Contents?: true
Size: 858 Bytes
Versions: 8
Compression:
Stored size: 858 Bytes
Contents
unless Fog.mocking? module Fog module Rackspace class Servers # Create an image from a running server # # ==== Parameters # * server_id<~Integer> - Id of server to create image from # * options<~Hash> - Name # def create_image(server_id, options = {}) data = { 'image' => { 'serverId' => server_id } } if options['name'] data['image']['name'] = options['name'] end request( :body => data.to_json, :expects => 202, :method => 'POST', :path => "images" ) end end end end else module Fog module Rackspace class Servers def create_image end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems