Class: Vagrant::Action::VM::Resume
- Inherits:
-
Object
- Object
- Vagrant::Action::VM::Resume
- Defined in:
- lib/vagrant/action/vm/resume.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Resume
constructor
A new instance of Resume.
Constructor Details
#initialize(app, env) ⇒ Resume
Returns a new instance of Resume.
5 6 7 |
# File 'lib/vagrant/action/vm/resume.rb', line 5 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant/action/vm/resume.rb', line 9 def call(env) if env["vm"].vm.saved? env.ui.info I18n.t("vagrant.actions.vm.resume.resuming") env["actions"].run(Boot) end @app.call(env) end |