Skip to content
Browse files

Add Bundler::UI#debug! (already on if ENV["DEBUG"] is set)

  • Loading branch information...
1 parent dcccd31 commit 25c6f9305275fc8276fa7dda83ed73726367593a @indirect indirect committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/bundler/ui.rb
View
7 lib/bundler/ui.rb
@@ -19,10 +19,11 @@ class Shell < UI
def initialize(shell)
@shell = shell
@quiet = false
+ @debug = ENV['DEBUG']
end
def debug(msg)
- @shell.say(msg) if ENV['DEBUG'] && !@quiet
+ @shell.say(msg) if @debug && !@quiet
end
def info(msg)
@@ -44,6 +45,10 @@ def error(msg)
def be_quiet!
@quiet = true
end
+
+ def debug!
+ @debug = true
+ end
end
class RGProxy < Gem::SilentUI

0 comments on commit 25c6f93

Please sign in to comment.
Something went wrong with that request. Please try again.