vagrant/lib/vagrant.rb

40 lines
1.3 KiB
Ruby
Raw Normal View History

require 'pathname'
require 'json'
require 'i18n'
require 'virtualbox'
2010-08-24 04:33:14 +00:00
module Vagrant
autoload :Action, 'vagrant/action'
autoload :Box, 'vagrant/box'
autoload :BoxCollection, 'vagrant/box_collection'
autoload :CLI, 'vagrant/cli'
autoload :Config, 'vagrant/config'
autoload :DataStore, 'vagrant/data_store'
autoload :Downloaders, 'vagrant/downloaders'
autoload :Environment, 'vagrant/environment'
autoload :Errors, 'vagrant/errors'
autoload :Hosts, 'vagrant/hosts'
2010-09-15 05:10:51 +00:00
autoload :Plugin, 'vagrant/plugin'
autoload :SSH, 'vagrant/ssh'
2010-09-15 15:19:38 +00:00
autoload :TestHelpers, 'vagrant/test_helpers'
autoload :UI, 'vagrant/ui'
autoload :Util, 'vagrant/util'
autoload :VM, 'vagrant/vm'
# The source root is the path to the root directory of
# the Vagrant gem.
def self.source_root
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
2010-08-24 04:33:14 +00:00
end
end
# Default I18n to load the en locale
I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root)
# Load the things which must be loaded before anything else
require 'vagrant/command'
require 'vagrant/provisioners'
require 'vagrant/systems'
Vagrant::Action.builtin!
2010-09-15 05:10:51 +00:00
Vagrant::Plugin.load!