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."
|
2013-12-04 02:43:19 +00:00
|
|
|
end
|
2013-12-03 23:20:37 +00:00
|
|
|
|
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)
|