diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-05-17 20:03:26 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-05-17 20:37:22 -0700 |
commit | 3ac4215617aca867f33f1b4e46c29421001bb07a (patch) | |
tree | b3368a1985e5919ac87c923270089e4be2839071 | |
parent | 177d4c12967cd385f381dc0584489ff74a654ad3 (diff) | |
download | bundler-3ac4215617aca867f33f1b4e46c29421001bb07a.tar.gz |
Ensure the RubyGems UI reflects the current Bundler UI
-rw-r--r-- | lib/bundler.rb | 9 |
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. |