Method: Fog::Compute::Voxel::Server#save
- Defined in:
- lib/fog/voxel/models/compute/server.rb
#save ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/fog/voxel/models/compute/server.rb', line 56 def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity requires :name, :image_id, :processing_cores, :facility, :disk_size data = connection.voxcloud_create({ :disk_size => disk_size, :facility => facility, :hostname => name, :image_id => image_id, :processing_cores => processing_cores }).body merge_attributes(data['device']) true end |