2010-09-04 02:25:48 +00:00
|
|
|
require 'pathname'
|
2010-08-24 04:41:40 +00:00
|
|
|
require 'json'
|
2010-08-27 04:56:38 +00:00
|
|
|
require 'i18n'
|
2010-08-24 04:41:40 +00:00
|
|
|
require 'virtualbox'
|
2010-03-13 11:08:26 +00:00
|
|
|
|
2010-08-24 04:33:14 +00:00
|
|
|
module Vagrant
|
2011-01-07 09:12:16 +00:00
|
|
|
autoload :Action, 'vagrant/action'
|
2010-09-11 17:17:26 +00:00
|
|
|
autoload :Box, 'vagrant/box'
|
|
|
|
autoload :BoxCollection, 'vagrant/box_collection'
|
|
|
|
autoload :CLI, 'vagrant/cli'
|
|
|
|
autoload :Config, 'vagrant/config'
|
|
|
|
autoload :DataStore, 'vagrant/data_store'
|
2011-01-07 09:12:16 +00:00
|
|
|
autoload :Downloaders, 'vagrant/downloaders'
|
|
|
|
autoload :Environment, 'vagrant/environment'
|
2010-09-11 17:17:26 +00:00
|
|
|
autoload :Errors, 'vagrant/errors'
|
2011-01-07 09:12:16 +00:00
|
|
|
autoload :Hosts, 'vagrant/hosts'
|
2010-09-15 05:10:51 +00:00
|
|
|
autoload :Plugin, 'vagrant/plugin'
|
2010-09-15 15:19:38 +00:00
|
|
|
autoload :TestHelpers, 'vagrant/test_helpers'
|
2011-01-07 09:12:16 +00:00
|
|
|
autoload :UI, 'vagrant/ui'
|
2010-09-11 17:17:26 +00:00
|
|
|
autoload :Util, 'vagrant/util'
|
2011-01-07 09:12:16 +00:00
|
|
|
autoload :VM, 'vagrant/vm'
|
2010-08-24 17:27:36 +00:00
|
|
|
|
2010-08-24 18:18:29 +00:00
|
|
|
# The source root is the path to the root directory of
|
|
|
|
# the Vagrant gem.
|
|
|
|
def self.source_root
|
2010-09-04 02:25:48 +00:00
|
|
|
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
2010-08-24 04:33:14 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-08-27 04:56:38 +00:00
|
|
|
# Default I18n to load the en locale
|
|
|
|
I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root)
|
|
|
|
|
2011-01-07 09:22:52 +00:00
|
|
|
# Load the things which must be loaded before anything else. Note that
|
|
|
|
# I'm not sure why 'vagrant/ssh' must be loaded. But if I don't, I get
|
|
|
|
# a very scary "unsupported cipher" error from net-ssh for no apparent reason.
|
2011-01-07 09:12:16 +00:00
|
|
|
require 'vagrant/command'
|
|
|
|
require 'vagrant/provisioners'
|
|
|
|
require 'vagrant/systems'
|
2011-01-07 09:22:52 +00:00
|
|
|
require 'vagrant/ssh'
|
2011-01-07 09:25:54 +00:00
|
|
|
require 'vagrant/version'
|
2010-07-04 02:58:03 +00:00
|
|
|
Vagrant::Action.builtin!
|
2010-09-15 05:10:51 +00:00
|
|
|
Vagrant::Plugin.load!
|