Skip to content

Commit

Permalink
Always setup plugins, but just don't always require them
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jan 6, 2014
1 parent f7e4c4d commit 36f64db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bin/vagrant
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions lib/vagrant/pre-rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
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"
Expand Down

0 comments on commit 36f64db

Please sign in to comment.