diff options
Diffstat (limited to 'lib/bundler/ui.rb')
-rw-r--r-- | lib/bundler/ui.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/bundler/ui.rb b/lib/bundler/ui.rb index 7742b9b353..df2199d7f5 100644 --- a/lib/bundler/ui.rb +++ b/lib/bundler/ui.rb @@ -15,18 +15,19 @@ module Bundler class Shell < UI def initialize(shell) @shell = shell + @quiet = false end def debug(msg) - @shell.say(msg) if ENV['DEBUG'] + @shell.say(msg) if ENV['DEBUG'] && !@quiet end def info(msg) - @shell.say(msg) + @shell.say(msg) if !@quiet end def confirm(msg) - @shell.say(msg, :green) + @shell.say(msg, :green) if !@quiet end def warn(msg) @@ -36,6 +37,10 @@ module Bundler def error(msg) @shell.say(msg, :red) end + + def be_quiet! + @quiet = true + end end class RGProxy < Gem::SilentUI @@ -52,4 +57,4 @@ module Bundler end end end -end
\ No newline at end of file +end |