Merge pull request #10379 from chrisroberts/e-vbox-6

Add support for VirtualBox 6.0
This commit is contained in:
Chris Roberts 2018-11-07 09:51:59 -08:00 committed by GitHub
commit 7d90f532c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 2 deletions

View File

@ -63,6 +63,7 @@ module VagrantPlugins
"5.0" => Version_5_0, "5.0" => Version_5_0,
"5.1" => Version_5_1, "5.1" => Version_5_1,
"5.2" => Version_5_2, "5.2" => Version_5_2,
"6.0" => Version_6_0,
} }
if @@version.start_with?("4.2.14") if @@version.start_with?("4.2.14")

View File

@ -1,10 +1,10 @@
require File.expand_path("../version_5_1", __FILE__) require File.expand_path("../version_5_0", __FILE__)
module VagrantPlugins module VagrantPlugins
module ProviderVirtualBox module ProviderVirtualBox
module Driver module Driver
# Driver for VirtualBox 5.2.x # Driver for VirtualBox 5.2.x
class Version_5_2 < Version_5_1 class Version_5_2 < Version_5_0
def initialize(uuid) def initialize(uuid)
super super

View File

@ -0,0 +1,16 @@
require File.expand_path("../version_5_0", __FILE__)
module VagrantPlugins
module ProviderVirtualBox
module Driver
# Driver for VirtualBox 6.0.x
class Version_6_0 < Version_5_0
def initialize(uuid)
super
@logger = Log4r::Logger.new("vagrant::provider::virtualbox_6_0")
end
end
end
end
end

View File

@ -58,6 +58,7 @@ module VagrantPlugins
autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__) autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__)
autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__) autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__)
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__) autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__)
autoload :Version_6_0, File.expand_path("../driver/version_6_0", __FILE__)
end end
module Model module Model