Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Add Bundler::UI#debug! (already on if ENV["DEBUG"] is set)
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 13, 2010
1 parent dcccd31 commit 25c6f93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bundler/ui.rb
Expand Up @@ -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)
Expand All @@ -44,6 +45,10 @@ def error(msg)
def be_quiet!
@quiet = true
end

def debug!
@debug = true
end
end

class RGProxy < Gem::SilentUI
Expand Down

0 comments on commit 25c6f93

Please sign in to comment.