diff options
| author | Andre Arko <andre@arko.net> | 2011-09-16 17:18:43 -0700 |
|---|---|---|
| committer | Andre Arko <andre@arko.net> | 2011-09-16 23:29:31 -0700 |
| commit | 06afc2519f7041f9d6cc47574ad874475901310e (patch) | |
| tree | b98ec3ee4a5231020d1785207c116a64f31f28a8 /lib/bundler/ui.rb | |
| parent | 7abe34a920ef6a09707a315629be1325e581a28c (diff) | |
| download | bundler-06afc2519f7041f9d6cc47574ad874475901310e.tar.gz | |
relocate debugger methods
Diffstat (limited to 'lib/bundler/ui.rb')
| -rw-r--r-- | lib/bundler/ui.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/bundler/ui.rb b/lib/bundler/ui.rb index dc904603da..9edf427d14 100644 --- a/lib/bundler/ui.rb +++ b/lib/bundler/ui.rb @@ -30,14 +30,6 @@ module Bundler @debug = ENV['DEBUG'] end - def debug(msg, newline = nil) - tell_me(msg, nil, newline) if debugging? - end - - def debugging? - @debug && !@quiet - end - def info(msg, newline = nil) tell_me(msg, nil, newline) if !@quiet end @@ -58,10 +50,18 @@ module Bundler @quiet = true end + def debugging? + @debug && !@quiet + end + def debug! @debug = true end + def debug(msg, newline = nil) + tell_me(msg, nil, newline) if debugging? + end + private # valimism def tell_me(msg, color = nil, newline = nil) |
