Always setup plugins, but just don't always require them
This commit is contained in:
parent
f7e4c4df6b
commit
36f64db874
|
@ -59,10 +59,8 @@ require "vagrant/shared_helpers"
|
||||||
|
|
||||||
# Setup our dependencies by initializing Bundler. If we're using plugins,
|
# Setup our dependencies by initializing Bundler. If we're using plugins,
|
||||||
# then also initialize the paths to the plugins.
|
# then also initialize the paths to the plugins.
|
||||||
groups = [:default]
|
|
||||||
groups << :plugins if Vagrant.plugins_enabled?
|
|
||||||
require "bundler"
|
require "bundler"
|
||||||
Bundler.setup(*groups)
|
Bundler.setup
|
||||||
|
|
||||||
require 'log4r'
|
require 'log4r'
|
||||||
require 'vagrant'
|
require 'vagrant'
|
||||||
|
|
|
@ -16,8 +16,7 @@ require_relative "bundler"
|
||||||
require_relative "plugin/manager"
|
require_relative "plugin/manager"
|
||||||
require_relative "shared_helpers"
|
require_relative "shared_helpers"
|
||||||
|
|
||||||
plugins = []
|
plugins = Vagrant::Plugin::Manager.instance.installed_plugins
|
||||||
plugins = Vagrant::Plugin::Manager.instance.installed_plugins if Vagrant.plugins_enabled?
|
|
||||||
Vagrant::Bundler.instance.init!(plugins)
|
Vagrant::Bundler.instance.init!(plugins)
|
||||||
|
|
||||||
ENV["VAGRANT_INTERNAL_BUNDLERIZED"] = "1"
|
ENV["VAGRANT_INTERNAL_BUNDLERIZED"] = "1"
|
||||||
|
|
Loading…
Reference in New Issue