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