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