Sha256: f01cf48a5c4e2f50df6456dc9ffe7832978aafc1e982ad6cdc5f73feb0304b8f
Contents?: true
Size: 1.07 KB
Versions: 23
Compression:
Stored size: 1.07 KB
Contents
module Fog module Vsphere class Compute class Real def add_vm_volume(volume) vm_reconfig_hardware('instance_uuid' => volume.server_id, 'hardware_spec' => { 'deviceChange' => [create_disk(volume, :add)] }) end def remove_vm_volume(volume) vm_reconfig_hardware('instance_uuid' => volume.server_id, 'hardware_spec' => { 'deviceChange' => [create_disk(volume, :remove)] }) end def destroy_vm_volume(volume) vm_reconfig_hardware('instance_uuid' => volume.server_id, 'hardware_spec' => { 'deviceChange' => [create_disk(volume, :remove, file_operation: :destroy)] }) end end class Mock def add_vm_volume(volume) vm_reconfig_hardware('instance_uuid' => volume.server_id, 'hardware_spec' => { 'deviceChange' => [create_cdrom(volume, :add)] }) end def remove_vm_volume(_volume) true end def destroy_vm_volume(_volume) true end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems