From 1d2beff6497a6b906b70c7e19170f34c1260c88e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 6 Nov 2012 21:14:45 -0800 Subject: [PATCH] Guests to V2 --- lib/vagrant/machine.rb | 2 +- plugins/guests/arch/plugin.rb | 2 +- plugins/guests/debian/plugin.rb | 2 +- plugins/guests/fedora/plugin.rb | 2 +- plugins/guests/freebsd/config.rb | 2 +- plugins/guests/freebsd/guest.rb | 2 +- plugins/guests/freebsd/plugin.rb | 2 +- plugins/guests/gentoo/plugin.rb | 2 +- plugins/guests/linux/config.rb | 2 +- plugins/guests/linux/guest.rb | 2 +- plugins/guests/linux/plugin.rb | 2 +- plugins/guests/openbsd/plugin.rb | 2 +- plugins/guests/redhat/plugin.rb | 2 +- plugins/guests/solaris/config.rb | 2 +- plugins/guests/solaris/guest.rb | 2 +- plugins/guests/solaris/plugin.rb | 2 +- plugins/guests/suse/plugin.rb | 2 +- plugins/guests/ubuntu/plugin.rb | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index 2edcfc111..515e83350 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -270,7 +270,7 @@ module Vagrant def load_guest(guest) @logger.info("Loading guest: #{guest}") - klass = Vagrant.plugin("1").manager.guests[guest] + klass = Vagrant.plugin("2").manager.guests[guest] if klass.nil? raise Errors::VMGuestError, diff --git a/plugins/guests/arch/plugin.rb b/plugins/guests/arch/plugin.rb index 7ae62c0c2..bcbb945ae 100644 --- a/plugins/guests/arch/plugin.rb +++ b/plugins/guests/arch/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestArch - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Arch guest" description "Arch guest support." diff --git a/plugins/guests/debian/plugin.rb b/plugins/guests/debian/plugin.rb index 4508064ec..7cb276635 100644 --- a/plugins/guests/debian/plugin.rb +++ b/plugins/guests/debian/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestDebian - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Debian guest" description "Debian guest support." diff --git a/plugins/guests/fedora/plugin.rb b/plugins/guests/fedora/plugin.rb index 5f6a6b5e8..29323f188 100644 --- a/plugins/guests/fedora/plugin.rb +++ b/plugins/guests/fedora/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestFedora - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Fedora guest" description "Fedora guest support." diff --git a/plugins/guests/freebsd/config.rb b/plugins/guests/freebsd/config.rb index 82d9863dc..8dfa12edc 100644 --- a/plugins/guests/freebsd/config.rb +++ b/plugins/guests/freebsd/config.rb @@ -1,6 +1,6 @@ module VagrantPlugins module GuestFreeBSD - class Config < Vagrant.plugin("1", :config) + class Config < Vagrant.plugin("2", :config) attr_accessor :halt_timeout attr_accessor :halt_check_interval diff --git a/plugins/guests/freebsd/guest.rb b/plugins/guests/freebsd/guest.rb index 4f092fa74..084197762 100644 --- a/plugins/guests/freebsd/guest.rb +++ b/plugins/guests/freebsd/guest.rb @@ -5,7 +5,7 @@ module VagrantPlugins # A general Vagrant system implementation for "freebsd". # # Contributed by Kenneth Vestergaard - class Guest < Vagrant.plugin("1", :guest) + class Guest < Vagrant.plugin("2", :guest) # Here for whenever it may be used. class FreeBSDError < Vagrant::Errors::VagrantError error_namespace("vagrant.guest.freebsd") diff --git a/plugins/guests/freebsd/plugin.rb b/plugins/guests/freebsd/plugin.rb index 8fe7f8529..a9d50b7fa 100644 --- a/plugins/guests/freebsd/plugin.rb +++ b/plugins/guests/freebsd/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestFreeBSD - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "FreeBSD guest" description "FreeBSD guest support." diff --git a/plugins/guests/gentoo/plugin.rb b/plugins/guests/gentoo/plugin.rb index ab9b618e9..c888d811d 100644 --- a/plugins/guests/gentoo/plugin.rb +++ b/plugins/guests/gentoo/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestGentoo - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Gentoo guest" description "Gentoo guest support." diff --git a/plugins/guests/linux/config.rb b/plugins/guests/linux/config.rb index 11b0b191a..f04b9d42d 100644 --- a/plugins/guests/linux/config.rb +++ b/plugins/guests/linux/config.rb @@ -1,6 +1,6 @@ module VagrantPlugins module GuestLinux - class Config < Vagrant.plugin("1", :config) + class Config < Vagrant.plugin("2", :config) attr_accessor :halt_timeout attr_accessor :halt_check_interval diff --git a/plugins/guests/linux/guest.rb b/plugins/guests/linux/guest.rb index e1a115006..4a2d69244 100644 --- a/plugins/guests/linux/guest.rb +++ b/plugins/guests/linux/guest.rb @@ -4,7 +4,7 @@ require "vagrant" module VagrantPlugins module GuestLinux - class Guest < Vagrant.plugin("1", :guest) + class Guest < Vagrant.plugin("2", :guest) class LinuxError < Vagrant::Errors::VagrantError error_namespace("vagrant.guest.linux") end diff --git a/plugins/guests/linux/plugin.rb b/plugins/guests/linux/plugin.rb index c095e8059..7c766edb5 100644 --- a/plugins/guests/linux/plugin.rb +++ b/plugins/guests/linux/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestLinux - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Linux guest." description "Linux guest support." diff --git a/plugins/guests/openbsd/plugin.rb b/plugins/guests/openbsd/plugin.rb index bce655ba4..ce74391c0 100644 --- a/plugins/guests/openbsd/plugin.rb +++ b/plugins/guests/openbsd/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestOpenBSD - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "OpenBSD guest" description "OpenBSD guest support." diff --git a/plugins/guests/redhat/plugin.rb b/plugins/guests/redhat/plugin.rb index 4b88e6766..4355152ff 100644 --- a/plugins/guests/redhat/plugin.rb +++ b/plugins/guests/redhat/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestRedHat - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "RedHat guest" description "RedHat guest support." diff --git a/plugins/guests/solaris/config.rb b/plugins/guests/solaris/config.rb index f94459f5e..e36b9c127 100644 --- a/plugins/guests/solaris/config.rb +++ b/plugins/guests/solaris/config.rb @@ -1,6 +1,6 @@ module VagrantPlugins module GuestSolaris - class Config < Vagrant.plugin("1", :config) + class Config < Vagrant.plugin("2", :config) attr_accessor :halt_timeout attr_accessor :halt_check_interval # This sets the command to use to execute items as a superuser. sudo is default diff --git a/plugins/guests/solaris/guest.rb b/plugins/guests/solaris/guest.rb index 51cb5c2e7..e85a731c5 100644 --- a/plugins/guests/solaris/guest.rb +++ b/plugins/guests/solaris/guest.rb @@ -5,7 +5,7 @@ module VagrantPlugins # A general Vagrant system implementation for "solaris". # # Contributed by Blake Irvin - class Guest < Vagrant.plugin("1", :guest) + class Guest < Vagrant.plugin("2", :guest) # Here for whenever it may be used. class SolarisError < Vagrant::Errors::VagrantError error_namespace("vagrant.guest.solaris") diff --git a/plugins/guests/solaris/plugin.rb b/plugins/guests/solaris/plugin.rb index 1cdecdff2..844f441b3 100644 --- a/plugins/guests/solaris/plugin.rb +++ b/plugins/guests/solaris/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestSolaris - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Solaris guest." description "Solaris guest support." diff --git a/plugins/guests/suse/plugin.rb b/plugins/guests/suse/plugin.rb index 5cef846c8..12e925f02 100644 --- a/plugins/guests/suse/plugin.rb +++ b/plugins/guests/suse/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestSuse - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "SUSE guest" description "SUSE guest support." diff --git a/plugins/guests/ubuntu/plugin.rb b/plugins/guests/ubuntu/plugin.rb index dc6998c6b..8e3cc72c1 100644 --- a/plugins/guests/ubuntu/plugin.rb +++ b/plugins/guests/ubuntu/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module GuestUbuntu - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "Ubuntu guest" description "Ubuntu guest support."