Providers to V2
This commit is contained in:
parent
5a33b7ee54
commit
81ca275792
|
@ -434,7 +434,7 @@ module Vagrant
|
||||||
# Loads the persisted VM (if it exists) for this environment.
|
# Loads the persisted VM (if it exists) for this environment.
|
||||||
def load_vms!
|
def load_vms!
|
||||||
# This is hardcoded for now.
|
# 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
|
raise "VirtualBox provider not found." if !provider
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "vagrant"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module ProviderVirtualBox
|
module ProviderVirtualBox
|
||||||
class Plugin < Vagrant.plugin("1")
|
class Plugin < Vagrant.plugin("2")
|
||||||
name "VirtualBox provider"
|
name "VirtualBox provider"
|
||||||
description <<-EOF
|
description <<-EOF
|
||||||
The VirtualBox provider allows Vagrant to manage and control
|
The VirtualBox provider allows Vagrant to manage and control
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "log4r"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module ProviderVirtualBox
|
module ProviderVirtualBox
|
||||||
class Provider < Vagrant.plugin("1", :provider)
|
class Provider < Vagrant.plugin("2", :provider)
|
||||||
attr_reader :driver
|
attr_reader :driver
|
||||||
|
|
||||||
def initialize(machine)
|
def initialize(machine)
|
||||||
|
|
Loading…
Reference in New Issue