class Chef::Knife::VcVappSuspend
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/vapp/vc_vapp_suspend.rb, line 27 def run $stdout.sync = true vapp_arg = @name_args.shift connection.login vapp = get_vapp(vapp_arg) task_id = connection.suspend_vapp vapp[:id] ui.msg "vApp suspend..." wait_task(connection, task_id) connection.logout end