Class: Vagrant::Smartos::Zones::Action::Zone::Stop
- Inherits:
-
Object
- Object
- Vagrant::Smartos::Zones::Action::Zone::Stop
- Includes:
- Helper
- Defined in:
- lib/vagrant/smartos/zones/action/zone/stop.rb
Instance Attribute Summary
Attributes included from Helper
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize(app, env) ⇒ Stop
Returns a new instance of Stop.
11 12 13 14 |
# File 'lib/vagrant/smartos/zones/action/zone/stop.rb', line 11 def initialize(app, env) @app = app @env = env end |
Instance Method Details
#call(env) ⇒ Object
16 17 18 19 |
# File 'lib/vagrant/smartos/zones/action/zone/stop.rb', line 16 def call(env) guest.capability(:zone__stop) if zones_supported? app.call(env) end |