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?
|
2010-09-22 00:10:46 +00:00
|
|
|
env.ui.info I18n.t("vagrant.actions.vm.resume.resuming")
|
2010-07-30 03:26:02 +00:00
|
|
|
env["actions"].run(Boot)
|
2010-07-07 04:27:20 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
@app.call(env)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|