vagrant/lib/vagrant.rb

18 lines
606 B
Ruby
Raw Normal View History

2014-01-05 00:15:12 +00:00
# This file is load before RubyGems are loaded, and allow us to actually
# resolve plugin dependencies and load the proper versions of everything.
2012-02-22 18:00:19 +00:00
2014-01-05 00:15:12 +00:00
if defined?(Vagrant)
raise "vagrant is somehow already loaded. bug."
end
2014-01-05 00:15:12 +00:00
ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] = "/Applications/Vagrant/embedded"
2012-04-20 23:53:01 +00:00
2014-01-05 00:15:12 +00:00
# Initialize Bundler before we load _any_ RubyGems.
require_relative "vagrant/bundler"
require_relative "vagrant/plugin_manager"
Vagrant::Bundler.instance.init!(Vagrant::PluginManager.plugins)
2012-04-20 23:53:01 +00:00
2014-01-05 00:15:12 +00:00
# Initialize Vagrant first, then load the remaining dependencies
require "vagrant/init"
Bundler.require(:default)