Class: VagrantPlugins::Openstack::Action::InternalProvisionWrapper

Inherits:
Vagrant::Action::Builtin::Provision
  • Object
show all
Defined in:
lib/vagrant-openstack-provider/action/provision.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ InternalProvisionWrapper

Returns a new instance of InternalProvisionWrapper.



28
29
30
31
# File 'lib/vagrant-openstack-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-provider/action/provision.rb', line 33

def run_provisioner(env)
  if env[:provisioner].is_a?(Vagrant.plugin('2').manager.provisioners[:shell])
    handle_shell_meta_args(env)
  end
  env[:provisioner].provision
end