vagrant/lib/vagrant/action/vm/resume.rb

21 lines
372 B
Ruby
Raw Normal View History

2010-07-07 04:27:20 +00:00
module Vagrant
2011-12-10 01:23:27 +00:00
module Action
2010-07-07 04:27:20 +00:00
module VM
class Resume
def initialize(app, env)
@app = app
end
def call(env)
if env["vm"].vm.saved?
env.ui.info I18n.t("vagrant.actions.vm.resume.resuming")
env["actions"].run(Boot)
2010-07-07 04:27:20 +00:00
end
@app.call(env)
end
end
end
end
end