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

18 lines
346 B
Ruby
Raw Normal View History

2014-02-27 01:41:02 +00:00
module VagrantPlugins
module HyperV
module Action
class ResumeVM
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info("Resuming the machine...")
env[:machine].provider.driver.resume
2014-02-27 01:41:02 +00:00
@app.call(env)
end
end
end
end
end