setup the Bundler path always

This commit is contained in:
Mitchell Hashimoto 2014-01-05 16:43:33 -08:00
parent e69723b63c
commit f7e4c4df6b
1 changed files with 6 additions and 5 deletions

View File

@ -57,11 +57,12 @@ end
# Require some stuff that is NOT dependent on RubyGems
require "vagrant/shared_helpers"
# Setup our dependencies by initializing Bundler if we're using plugins
if Vagrant.plugins_enabled?
require "bundler"
Bundler.setup
end
# Setup our dependencies by initializing Bundler. If we're using plugins,
# then also initialize the paths to the plugins.
groups = [:default]
groups << :plugins if Vagrant.plugins_enabled?
require "bundler"
Bundler.setup(*groups)
require 'log4r'
require 'vagrant'