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.
5 6 7 |
# File 'lib/vSphere/action/is_suspended.rb', line 5 def initialize(app, _env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 |
# File 'lib/vSphere/action/is_suspended.rb', line 9 def call(env) env[:result] = env[:machine].state.id == :suspended @app.call env end |