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