Class: VagrantPlugins::ProviderZone::Action::Network

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-zones/action/network.rb

Overview

This is use to define the network

Instance Method Summary collapse

Constructor Details

#initialize(app, _env) ⇒ Network

Returns a new instance of Network.



12
13
14
15
# File 'lib/vagrant-zones/action/network.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/network.rb', line 17

def call(env)
  @machine = env[:machine]
  @driver  = @machine.provider.driver
  @driver.network(env[:ui], 'create')
  @app.call(env)
end