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