2010-02-10 07:08:23 +00:00
|
|
|
libdir = File.dirname(__FILE__)
|
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-09 16:25:16 +00:00
|
|
|
%w{tempfile open-uri json pathname logger uri net/http virtualbox net/ssh archive/tar/minitar
|
2010-03-25 06:54:35 +00:00
|
|
|
net/scp fileutils mario}.each do |lib|
|
2010-03-13 11:08:26 +00:00
|
|
|
require lib
|
|
|
|
end
|
|
|
|
|
|
|
|
# The vagrant specific files which must be loaded prior to the rest
|
2010-04-08 19:44:25 +00:00
|
|
|
%w{vagrant/util vagrant/util/stacked_proc_runner vagrant/util/progress_meter vagrant/actions/base vagrant/downloaders/base vagrant/actions/collection
|
2010-04-14 00:08:36 +00:00
|
|
|
vagrant/actions/runner vagrant/config vagrant/provisioners/base vagrant/provisioners/chef vagrant/commands/base vagrant/commands/box}.each do |f|
|
2010-03-13 11:12:08 +00:00
|
|
|
require File.expand_path(f, libdir)
|
2010-02-13 19:43:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Glob require the rest
|
2010-03-13 11:08:26 +00:00
|
|
|
Dir[File.join(libdir, "vagrant", "**", "*.rb")].each do |f|
|
2010-03-13 11:12:08 +00:00
|
|
|
require File.expand_path(f)
|
2010-02-13 19:43:58 +00:00
|
|
|
end
|