Class: VagrantPlugins::ProviderZone::Action::Start
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderZone::Action::Start
- Defined in:
- lib/vagrant-zones/action/start.rb
Overview
This is used to start the zone
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ Start
constructor
A new instance of Start.
Constructor Details
#initialize(app, _env) ⇒ Start
Returns a new instance of Start.
10 11 12 13 |
# File 'lib/vagrant-zones/action/start.rb', line 10 def initialize(app, _env) @logger = Log4r::Logger.new('vagrant_zones::action::import') @app = app end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/vagrant-zones/action/start.rb', line 15 def call(env) @machine = env[:machine] @driver = @machine.provider.driver @driver.check_zone_support(env[:ui]) @driver.boot(env[:ui]) @app.call(env) end |