Class: VagrantPlugins::Openstack::Action::InternalProvisionWrapper
- Inherits:
-
Vagrant::Action::Builtin::Provision
- Object
- Vagrant::Action::Builtin::Provision
- VagrantPlugins::Openstack::Action::InternalProvisionWrapper
- Defined in:
- lib/vagrant-openstack-illuin-provider/action/provision.rb
Instance Method Summary collapse
-
#initialize(app, env) ⇒ InternalProvisionWrapper
constructor
A new instance of InternalProvisionWrapper.
- #run_provisioner(env) ⇒ Object
Constructor Details
#initialize(app, env) ⇒ InternalProvisionWrapper
Returns a new instance of InternalProvisionWrapper.
28 29 30 31 |
# File 'lib/vagrant-openstack-illuin-provider/action/provision.rb', line 28 def initialize(app, env) @logger = Log4r::Logger.new('vagrant_openstack::action::internal_provision_wrapper') super app, env end |
Instance Method Details
#run_provisioner(env) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/vagrant-openstack-illuin-provider/action/provision.rb', line 33 def run_provisioner(env) if env[:provisioner].is_a?(Vagrant.plugin('2').manager.provisioners[:shell]) (env) end env[:provisioner].provision end |