Move provisioners to Vagrant.plugin("1", :provisioner)
This commit is contained in:
parent
590f648fc0
commit
55528e051c
|
@ -48,7 +48,7 @@ module VagrantPlugins
|
|||
return
|
||||
end
|
||||
|
||||
if !(provisioner <= Vagrant::Plugin::V1::Provisioner)
|
||||
if !(provisioner <= Vagrant.plugin("1", :provisioner))
|
||||
errors.add(I18n.t("vagrant.config.vm.provisioner_invalid_class", :shortcut => shortcut))
|
||||
end
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
|||
# This class is a base class where the common functionality shared between
|
||||
# chef-solo and chef-client provisioning are stored. This is **not an actual
|
||||
# provisioner**. Instead, {ChefSolo} or {ChefServer} should be used.
|
||||
class Base < Vagrant::Plugin::V1::Provisioner
|
||||
class Base < Vagrant.plugin("1", :provisioner)
|
||||
include Vagrant::Util::Counter
|
||||
|
||||
def initialize(env, config)
|
||||
|
|
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
|||
error_namespace("vagrant.provisioners.puppet")
|
||||
end
|
||||
|
||||
class Puppet < Vagrant::Plugin::V1::Provisioner
|
||||
class Puppet < Vagrant.plugin("1", :provisioner)
|
||||
class Config < Vagrant.plugin("1", :config)
|
||||
attr_accessor :manifest_file
|
||||
attr_accessor :manifests_path
|
||||
|
|
|
@ -5,7 +5,7 @@ module VagrantPlugins
|
|||
error_namespace("vagrant.provisioners.puppet_server")
|
||||
end
|
||||
|
||||
class PuppetServer < Vagrant::Plugin::V1::Provisioner
|
||||
class PuppetServer < Vagrant.plugin("1", :provisioner)
|
||||
class Config < Vagrant.plugin("1", :config)
|
||||
attr_accessor :puppet_server
|
||||
attr_accessor :puppet_node
|
||||
|
|
|
@ -3,7 +3,7 @@ require "tempfile"
|
|||
|
||||
module VagrantPlugins
|
||||
module Shell
|
||||
class Provisioner < Vagrant::Plugin::V1::Provisioner
|
||||
class Provisioner < Vagrant.plugin("1", :provisioner)
|
||||
class Config < Vagrant.plugin("1", :config)
|
||||
attr_accessor :inline
|
||||
attr_accessor :path
|
||||
|
|
Loading…
Reference in New Issue