class Chef::Knife::VcVappReset

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/vapp/vc_vapp_reset.rb, line 27
def run
  $stdout.sync = true

  vapp_arg = @name_args.shift

  connection.login
  vapp = get_vapp(vapp_arg)

  task_id = connection.reset_vapp vapp[:id]

  ui.msg "vApp reset..."
  wait_task(connection, task_id)

  connection.logout
end