Class: Vagrant::LXC::Action::IsRunning
- Inherits:
-
BaseAction
- Object
- BaseAction
- Vagrant::LXC::Action::IsRunning
- Defined in:
- lib/vagrant-lxc/action/is_running.rb
Instance Method Summary collapse
Methods inherited from BaseAction
Constructor Details
This class inherits a constructor from Vagrant::LXC::Action::BaseAction
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/vagrant-lxc/action/is_running.rb', line 5 def call(env) env[:result] = env[:machine].state.running? # Call the next if we have one (but we shouldn't, since this # middleware is built to run with the Call-type middlewares) @app.call(env) end |