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-09 16:25:16 +00:00
|
|
|
%w{tempfile open-uri json pathname logger uri net/http virtualbox net/ssh archive/tar/minitar
|
2010-03-13 11:08:26 +00:00
|
|
|
net/scp fileutils}.each do |lib|
|
|
|
|
require lib
|
|
|
|
end
|
|
|
|
|
|
|
|
# The vagrant specific files which must be loaded prior to the rest
|
|
|
|
%w{vagrant/util vagrant/actions/base vagrant/downloaders/base vagrant/actions/runner
|
2010-03-11 03:00:49 +00:00
|
|
|
vagrant/config vagrant/provisioners/base vagrant/provisioners/chef}.each do |f|
|
2010-03-13 11:11:16 +00:00
|
|
|
puts 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:11:16 +00:00
|
|
|
puts File.expand_path(f)
|
2010-02-13 19:43:58 +00:00
|
|
|
end
|