Class: Vcloud::CLI::Utils::DetachDisk
- Inherits:
-
Object
- Object
- Vcloud::CLI::Utils::DetachDisk
- Includes:
- Methadone::CLILogging, Methadone::Main
- Defined in:
- lib/vcloud/cli/utils/detach_disk.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vcloud/cli/utils/detach_disk.rb', line 13 def self.run main do |vm_id, disk_id| vcloud = ::Fog::Compute::VcloudDirector.new Fog.mock! if ENV['FOG_MOCK'] task = vcloud.post_detach_disk(vm_id, disk_id).body vcloud.process_task(task) end arg :vm_id arg :disk_id description " " go! end |