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
|
|
|
|
|
2012-12-23 06:47:06 +00:00
|
|
|
provider(:virtualbox) 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
|
|
|
|
|
|
|
config(:virtualbox, :provider => :virtualbox) do
|
|
|
|
require File.expand_path("../config", __FILE__)
|
|
|
|
Config
|
|
|
|
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__)
|
2012-07-25 04:32:38 +00:00
|
|
|
end
|
2012-07-15 18:17:58 +00:00
|
|
|
end
|
|
|
|
end
|