Sha256: a402550a3ace3ddf40d2251d519cc778692d1979fd08252092cbf715bfc8d716

Contents?: true

Size: 789 Bytes

Versions: 12

Compression:

Stored size: 789 Bytes

Contents

require_relative "client"
require_relative "installer"

module VagrantPlugins
  module ContainerProvisioner
    class Provisioner < Vagrant.plugin("2", :provisioner)
      def initialize(machine, config, installer = nil, client = nil)
        super(machine, config)

        @installer = installer || Installer.new(@machine)
        @client    = client    || Client.new(@machine, "")
        @logger = Log4r::Logger.new("vagrant::provisioners::container")
      end

      def provision
        # nothing to do
      end

      def run_provisioner(env)
        klass  = Vagrant.plugin("2").manager.provisioners[env[:provisioner].type]
        result = klass.new(env[:machine], env[:provisioner].config)
        result.config.finalize!

        result.provision
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/provisioners/container/provisioner.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.3.3.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.3.2.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.19.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.18.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.16.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.14.0 plugins/provisioners/container/provisioner.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.10.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.9.0 plugins/provisioners/container/provisioner.rb
vagrant-unbundled-2.2.8.0 plugins/provisioners/container/provisioner.rb