Class: VagrantPlugins::ProviderLocal::Action::Start
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderLocal::Action::Start
- Defined in:
- lib/vagrant-local/action/start.rb
Overview
This is used to start the instance
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-local/action/start.rb', line 10 def initialize(app, _env) @logger = Log4r::Logger.new('vagrant_local::action::start') @app = app end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/vagrant-local/action/start.rb', line 15 def call(env) @machine = env[:machine] @driver = @machine.provider.driver @driver.check_support(env[:ui]) @driver.boot(env[:ui]) @app.call(env) end |