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