summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index d2ec64c3ac..4eb56b5001 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -85,14 +85,19 @@ module Bundler
class MarshalError < StandardError; end
class << self
- attr_writer :ui, :bundle_path
+ attr_writer :bundle_path
def configure
@configured ||= configure_gem_home_and_path
end
def ui
- @ui ||= UI::Silent.new
+ @ui || (self.ui = UI::Silent.new)
+ end
+
+ def ui=(ui)
+ Bundler.rubygems.ui = UI::RGProxy.new(ui)
+ @ui = ui
end
# Returns absolute path of where gems are installed on the filesystem.