Class: VagrantPlugins::Proxmox::Action::IsStopped
- Inherits:
-
ProxmoxAction
- Object
- ProxmoxAction
- VagrantPlugins::Proxmox::Action::IsStopped
- Defined in:
- lib/vagrant-proxmox/action/is_stopped.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ IsStopped
constructor
A new instance of IsStopped.
Constructor Details
#initialize(app, env) ⇒ IsStopped
Returns a new instance of IsStopped.
7 8 9 |
# File 'lib/vagrant-proxmox/action/is_stopped.rb', line 7 def initialize app, env @app = app end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 |
# File 'lib/vagrant-proxmox/action/is_stopped.rb', line 11 def call env env[:result] = env[:machine].state.id == :stopped next_action env end |