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