2010-04-25 07:51:45 +00:00
|
|
|
libdir = File.join(File.dirname(__FILE__), "vagrant")
|
|
|
|
PROJECT_ROOT = File.join(libdir, '..', "..") unless defined?(PROJECT_ROOT)
|
2010-02-10 07:08:23 +00:00
|
|
|
|
2010-04-25 07:51:45 +00:00
|
|
|
# First, load the various libs which Vagrant requires
|
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
|
|
|
|
|
2010-04-25 07:51:45 +00:00
|
|
|
# Then load the glob loader, which will handle loading everything else
|
|
|
|
require File.expand_path("util/glob_loader", libdir)
|
2010-02-13 19:43:58 +00:00
|
|
|
|
2010-04-25 07:51:45 +00:00
|
|
|
# Load them up
|
|
|
|
Vagrant::GlobLoader.glob_require(libdir, %w{util util/stacked_proc_runner util/progress_meter
|
|
|
|
actions/base downloaders/base actions/collection actions/runner config
|
|
|
|
provisioners/base provisioners/chef systems/base commands/base commands/box})
|