Cleaned up the requiring of files in vagrant.rb

This commit is contained in:
Mitchell Hashimoto 2010-02-13 11:43:58 -08:00
parent a4b9375abf
commit 8f63272403
1 changed files with 10 additions and 17 deletions

View File

@ -2,20 +2,13 @@ libdir = File.dirname(__FILE__)
$:.unshift(libdir) $:.unshift(libdir)
PROJECT_ROOT = File.join(libdir, '..') PROJECT_ROOT = File.join(libdir, '..')
require 'ftools' # The libs which must be loaded prior to the rest
require 'json' %w{ftools json pathname logger virtualbox net/ssh
require 'pathname' net/scp tarruby fileutils vagrant/util}.each do |f|
require 'logger' require f
require 'virtualbox' end
require 'net/ssh'
require 'net/scp' # Glob require the rest
require 'tarruby' Dir[File.join(PROJECT_ROOT, "lib", "vagrant", "**", "*.rb")].each do |f|
require 'fileutils' require f
require 'vagrant/busy' end
require 'vagrant/util'
require 'vagrant/commands'
require 'vagrant/config'
require 'vagrant/env'
require 'vagrant/provisioning'
require 'vagrant/ssh'
require 'vagrant/vm'