vagrant/plugins/providers/hyperv/action/start_instance.rb

20 lines
411 B
Ruby
Raw Normal View History

module VagrantPlugins
module HyperV
module Action
class StartInstance
def initialize(app, env)
@app = app
end
def call(env)
2014-02-26 19:12:24 +00:00
env[:ui].output('Starting the machine...')
options = { vm_id: env[:machine].id }
2014-02-26 19:12:42 +00:00
env[:machine].provider.driver.execute('start_vm.ps1', options)
2014-02-26 19:12:24 +00:00
@app.call(env)
end
end
end
end
end