class Chef::Knife::VcVmDiscardSuspended
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/vm/vc_vm_discard_suspended.rb, line 27 def run $stdout.sync = true vm_arg = @name_args.shift connection.login vm = get_vm(vm_arg) task_id = connection.discard_suspend_state_vm vm[:id] ui.msg "Discarding VM suspended state..." wait_task(connection, task_id) connection.logout end