class VagrantPlugins::VSphere::Action::PowerOn
Public Class Methods
new(app, _env)
click to toggle source
# File lib/vSphere/action/power_on.rb, line 13 def initialize(app, _env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vSphere/action/power_on.rb, line 17 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) @app.call env end