2010-02-10 07:08:23 +00:00
|
|
|
libdir = File.dirname(__FILE__)
|
|
|
|
$:.unshift(libdir)
|
2010-02-13 19:50:01 +00:00
|
|
|
PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT)
|
2010-02-10 07:08:23 +00:00
|
|
|
|
2010-02-13 19:43:58 +00:00
|
|
|
# The libs which must be loaded prior to the rest
|
2010-03-01 06:13:37 +00:00
|
|
|
%w{tempfile open-uri ftools json pathname logger uri net/http virtualbox net/ssh tarruby
|
2010-03-09 16:45:14 +00:00
|
|
|
net/scp fileutils vagrant/util vagrant/actions/base vagrant/downloaders/base vagrant/actions/runner}.each do |f|
|
2010-02-13 19:43:58 +00:00
|
|
|
require f
|
|
|
|
end
|
|
|
|
|
|
|
|
# Glob require the rest
|
|
|
|
Dir[File.join(PROJECT_ROOT, "lib", "vagrant", "**", "*.rb")].each do |f|
|
|
|
|
require f
|
|
|
|
end
|