2012-07-15 18:17:58 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module ProviderVirtualBox
|
2012-11-07 05:20:55 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-07-25 04:32:38 +00:00
|
|
|
name "VirtualBox provider"
|
2012-07-15 18:17:58 +00:00
|
|
|
description <<-EOF
|
|
|
|
The VirtualBox provider allows Vagrant to manage and control
|
|
|
|
VirtualBox-based virtual machines.
|
|
|
|
EOF
|
|
|
|
|
2014-05-06 04:13:56 +00:00
|
|
|
provider(:virtualbox, priority: 6) do
|
2012-07-15 18:17:58 +00:00
|
|
|
require File.expand_path("../provider", __FILE__)
|
|
|
|
Provider
|
|
|
|
end
|
2012-12-23 06:47:06 +00:00
|
|
|
|
2013-01-13 20:38:51 +00:00
|
|
|
config(:virtualbox, :provider) do
|
2012-12-23 06:47:06 +00:00
|
|
|
require File.expand_path("../config", __FILE__)
|
|
|
|
Config
|
|
|
|
end
|
2013-11-22 01:38:17 +00:00
|
|
|
|
|
|
|
synced_folder(:virtualbox) do
|
|
|
|
require File.expand_path("../synced_folder", __FILE__)
|
|
|
|
SyncedFolder
|
|
|
|
end
|
2014-02-14 00:34:34 +00:00
|
|
|
|
|
|
|
provider_capability(:virtualbox, :forwarded_ports) do
|
|
|
|
require_relative "cap"
|
|
|
|
Cap
|
|
|
|
end
|
2014-03-14 18:23:07 +00:00
|
|
|
|
|
|
|
provider_capability(:virtualbox, :nic_mac_addresses) do
|
|
|
|
require_relative "cap"
|
|
|
|
Cap
|
|
|
|
end
|
2015-10-08 12:46:36 +00:00
|
|
|
|
2015-11-23 21:23:16 +00:00
|
|
|
provider_capability(:virtualbox, :public_address) do
|
|
|
|
require_relative "cap/public_address"
|
|
|
|
Cap::PublicAddress
|
|
|
|
end
|
|
|
|
|
2015-10-08 12:46:36 +00:00
|
|
|
provider_capability(:virtualbox, :snapshot_list) do
|
|
|
|
require_relative "cap"
|
|
|
|
Cap
|
|
|
|
end
|
2012-07-15 18:17:58 +00:00
|
|
|
end
|
2012-07-25 04:32:38 +00:00
|
|
|
|
2012-07-27 05:39:27 +00:00
|
|
|
autoload :Action, File.expand_path("../action", __FILE__)
|
|
|
|
|
2012-07-25 04:32:38 +00:00
|
|
|
# Drop some autoloads in here to optimize the performance of loading
|
|
|
|
# our drivers only when they are needed.
|
|
|
|
module Driver
|
|
|
|
autoload :Meta, File.expand_path("../driver/meta", __FILE__)
|
|
|
|
autoload :Version_4_0, File.expand_path("../driver/version_4_0", __FILE__)
|
|
|
|
autoload :Version_4_1, File.expand_path("../driver/version_4_1", __FILE__)
|
2012-09-14 02:11:32 +00:00
|
|
|
autoload :Version_4_2, File.expand_path("../driver/version_4_2", __FILE__)
|
2013-10-15 21:37:45 +00:00
|
|
|
autoload :Version_4_3, File.expand_path("../driver/version_4_3", __FILE__)
|
2015-04-28 15:53:48 +00:00
|
|
|
autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__)
|
2016-07-13 12:34:25 +00:00
|
|
|
autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__)
|
2017-09-08 19:00:17 +00:00
|
|
|
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__)
|
2018-11-06 18:06:09 +00:00
|
|
|
autoload :Version_6_0, File.expand_path("../driver/version_6_0", __FILE__)
|
2012-07-25 04:32:38 +00:00
|
|
|
end
|
2013-01-05 02:22:38 +00:00
|
|
|
|
|
|
|
module Model
|
|
|
|
autoload :ForwardedPort, File.expand_path("../model/forwarded_port", __FILE__)
|
|
|
|
end
|
2013-01-11 22:44:27 +00:00
|
|
|
|
|
|
|
module Util
|
|
|
|
autoload :CompileForwardedPorts, File.expand_path("../util/compile_forwarded_ports", __FILE__)
|
|
|
|
end
|
2012-07-15 18:17:58 +00:00
|
|
|
end
|
|
|
|
end
|