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