Skip to content

Commit

Permalink
Merge pull request #13513 from chrisroberts/vbox-7_1
Browse files Browse the repository at this point in the history
Add support for VirtualBox 7.1
  • Loading branch information
chrisroberts authored Oct 30, 2024
2 parents ab7f0a0 + 85d97f5 commit 5e83b54
Show file tree
Hide file tree
Showing 8 changed files with 818 additions and 772 deletions.
1 change: 1 addition & 0 deletions plugins/providers/virtualbox/driver/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def initialize(uuid=nil)
"6.0" => Version_6_0,
"6.1" => Version_6_1,
"7.0" => Version_7_0,
"7.1" => Version_7_1,
}

if @@version.start_with?("4.2.14")
Expand Down
19 changes: 19 additions & 0 deletions plugins/providers/virtualbox/driver/version_7_1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

require File.expand_path("../version_7_0", __FILE__)

module VagrantPlugins
module ProviderVirtualBox
module Driver
# Driver for VirtualBox 7.1.x
class Version_7_1 < Version_7_0
def initialize(uuid)
super

@logger = Log4r::Logger.new("vagrant::provider::virtualbox_7_1")
end
end
end
end
end
1 change: 1 addition & 0 deletions plugins/providers/virtualbox/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module Driver
autoload :Version_6_0, File.expand_path("../driver/version_6_0", __FILE__)
autoload :Version_6_1, File.expand_path("../driver/version_6_1", __FILE__)
autoload :Version_7_0, File.expand_path("../driver/version_7_0", __FILE__)
autoload :Version_7_1, File.expand_path("../driver/version_7_1", __FILE__)
end

module Model
Expand Down
1 change: 1 addition & 0 deletions test/unit/plugins/providers/virtualbox/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
require_relative "support/shared/virtualbox_driver_version_4_x_examples"
require_relative "support/shared/virtualbox_driver_version_5_x_examples"
require_relative "support/shared/virtualbox_driver_version_6_x_examples"
require_relative "support/shared/virtualbox_driver_version_7_x_examples"
Loading

0 comments on commit 5e83b54

Please sign in to comment.