vagrant/lib/vagrant.rb

20 lines
738 B
Ruby
Raw Normal View History

libdir = File.join(File.dirname(__FILE__), "vagrant")
PROJECT_ROOT = File.join(libdir, '..', "..") unless defined?(PROJECT_ROOT)
# First, load the various libs which Vagrant requires
%w{tempfile json pathname logger virtualbox net/ssh archive/tar/minitar
net/scp fileutils mario}.each do |lib|
require lib
end
# Then load the glob loader, which will handle loading everything else
require File.expand_path("util/glob_loader", libdir)
# Load them up
Vagrant::GlobLoader.glob_require(libdir, %w{util/stacked_proc_runner
actions/base downloaders/base actions/collection actions/runner config
2010-05-21 03:54:34 +00:00
provisioners/base provisioners/chef systems/base commands/base commands/box})
# Initialize the built-in actions
Vagrant::Action.builtin!