From 81ca2757923243948247b69b1c6b234c72ef5909 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 6 Nov 2012 21:20:55 -0800 Subject: [PATCH] Providers to V2 --- lib/vagrant/environment.rb | 2 +- plugins/providers/virtualbox/plugin.rb | 2 +- plugins/providers/virtualbox/provider.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 4bf3caaed..d4b756a5d 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -434,7 +434,7 @@ module Vagrant # Loads the persisted VM (if it exists) for this environment. def load_vms! # This is hardcoded for now. - provider = Vagrant.plugin("1").manager.providers[:virtualbox] + provider = Vagrant.plugin("2").manager.providers[:virtualbox] raise "VirtualBox provider not found." if !provider diff --git a/plugins/providers/virtualbox/plugin.rb b/plugins/providers/virtualbox/plugin.rb index 258f1e140..77341f61b 100644 --- a/plugins/providers/virtualbox/plugin.rb +++ b/plugins/providers/virtualbox/plugin.rb @@ -2,7 +2,7 @@ require "vagrant" module VagrantPlugins module ProviderVirtualBox - class Plugin < Vagrant.plugin("1") + class Plugin < Vagrant.plugin("2") name "VirtualBox provider" description <<-EOF The VirtualBox provider allows Vagrant to manage and control diff --git a/plugins/providers/virtualbox/provider.rb b/plugins/providers/virtualbox/provider.rb index 44407c031..c681014da 100644 --- a/plugins/providers/virtualbox/provider.rb +++ b/plugins/providers/virtualbox/provider.rb @@ -2,7 +2,7 @@ require "log4r" module VagrantPlugins module ProviderVirtualBox - class Provider < Vagrant.plugin("1", :provider) + class Provider < Vagrant.plugin("2", :provider) attr_reader :driver def initialize(machine)