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-18 00:59:25 +00:00
|
|
|
net/scp fileutils}.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-03-15 21:19:28 +00:00
|
|
|
%w{vagrant/util vagrant/stacked_proc_runner vagrant/actions/base vagrant/downloaders/base vagrant/actions/collection
|
2010-03-15 05:34:48 +00:00
|
|
|
vagrant/actions/runner vagrant/config vagrant/provisioners/base vagrant/provisioners/chef}.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
|