Always setup plugins, but just don't always require them

This commit is contained in:
Mitchell Hashimoto 2014-01-05 16:49:25 -08:00
parent f7e4c4df6b
commit 36f64db874
2 changed files with 2 additions and 5 deletions

View File

@ -59,10 +59,8 @@ require "vagrant/shared_helpers"
# 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)
Bundler.setup
require 'log4r'
require 'vagrant'

View File

@ -16,8 +16,7 @@ require_relative "bundler"
require_relative "plugin/manager"
require_relative "shared_helpers"
plugins = []
plugins = Vagrant::Plugin::Manager.instance.installed_plugins if Vagrant.plugins_enabled?
plugins = Vagrant::Plugin::Manager.instance.installed_plugins
Vagrant::Bundler.instance.init!(plugins)
ENV["VAGRANT_INTERNAL_BUNDLERIZED"] = "1"