Set the Bundler UI only if we enable it [GH-3193]

This commit is contained in:
Mitchell Hashimoto 2014-03-13 14:18:33 -07:00
parent b3ad79e5d2
commit 024056fc66
1 changed files with 7 additions and 7 deletions

View File

@ -25,6 +25,13 @@ module Vagrant
@gem_home = ENV["GEM_HOME"]
@gem_path = ENV["GEM_PATH"]
end
# Initializes Bundler and the various gem paths so that we can begin
# loading gems. This must only be called once.
def init!(plugins)
# If we're not enabled, then we don't do anything.
return if !@enabled
# Set the Bundler UI to be a silent UI. We have to add the
# `silence` method to it because Bundler UI doesn't have it.
@ -35,13 +42,6 @@ module Vagrant
yield
end
end
end
# Initializes Bundler and the various gem paths so that we can begin
# loading gems. This must only be called once.
def init!(plugins)
# If we're not enabled, then we don't do anything.
return if !@enabled
bundle_path = Vagrant.user_data_path.join("gems")