Move provisioners to Vagrant.plugin("1", :provisioner)

This commit is contained in:
Mitchell Hashimoto 2012-06-26 16:04:51 -07:00
parent 590f648fc0
commit 55528e051c
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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