Class: VagrantPlugins::Openstack::Action::ProvisionWrapper

Inherits:
AbstractAction
  • Object
show all
Defined in:
lib/vagrant-openstack-provider/action/provision.rb

Instance Method Summary collapse

Methods inherited from AbstractAction

#call

Constructor Details

#initialize(app, env) ⇒ ProvisionWrapper

Returns a new instance of ProvisionWrapper.



14
15
16
17
18
# File 'lib/vagrant-openstack-provider/action/provision.rb', line 14

def initialize(app, env)
  @app    = app
  @env    = env
  @logger = Log4r::Logger.new('vagrant_openstack::action::provision_wrapper')
end

Instance Method Details

#execute(env) ⇒ Object



20
21
22
23
24
# File 'lib/vagrant-openstack-provider/action/provision.rb', line 20

def execute(env)
  @logger.info 'Run provisioning'
  InternalProvisionWrapper.new(@app, @env).call(@env)
  @app.call(env)
end