vagrant/lib/vagrant.rb

21 lines
709 B
Ruby
Raw Normal View History

libdir = File.dirname(__FILE__)
$:.unshift(libdir)
PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT)
# The libs which must be loaded prior to the rest
%w{tempfile open-uri json pathname logger uri net/http virtualbox net/ssh archive/tar/minitar
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
vagrant/config vagrant/provisioners/base vagrant/provisioners/chef}.each do |f|
puts File.expand_path(f, libdir)
end
# Glob require the rest
Dir[File.join(libdir, "vagrant", "**", "*.rb")].each do |f|
puts File.expand_path(f)
end