Class: VagrantPlugins::Openstack::Action::ProvisionWrapper
- Inherits:
-
AbstractAction
- Object
- AbstractAction
- VagrantPlugins::Openstack::Action::ProvisionWrapper
- Defined in:
- lib/vagrant-openstack-provider/action/provision.rb
Instance Method Summary collapse
- #execute(env) ⇒ Object
-
#initialize(app, env) ⇒ ProvisionWrapper
constructor
A new instance of ProvisionWrapper.
Methods inherited from AbstractAction
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 |