class VagrantPlugins::VSphere::Action::PowerOn
Public Class Methods
new(app, _env)
click to toggle source
# File lib/vSphere/action/power_on.rb, line 15 def initialize(app, _env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vSphere/action/power_on.rb, line 19 def call(env) vm = get_vm_by_uuid env[:vSphere_connection], env[:machine] env[:ui].info I18n.t('vsphere.power_on_vm') power_on_vm(vm) # wait for SSH to be available wait_for_ssh env @app.call env end