summaryrefslogtreecommitdiff
path: root/lib/bundler/ui.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-10-02 21:02:13 -0700
committerAndre Arko <andre@arko.net>2011-10-02 22:49:33 -0700
commit4a14b17ba7b84cce9e1f6520f9beb2c7652aa0a2 (patch)
tree6abeb13ca582729df73fae3fac0e2616ebf95f09 /lib/bundler/ui.rb
parent9b27087649b1af6b31b2114e2fa0960ff9e6d056 (diff)
downloadbundler-4a14b17ba7b84cce9e1f6520f9beb2c7652aa0a2.tar.gz
change UI#debugging? to UI#debug? for symmetry
Diffstat (limited to 'lib/bundler/ui.rb')
-rw-r--r--lib/bundler/ui.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bundler/ui.rb b/lib/bundler/ui.rb
index 9edf427d14..b47a831852 100644
--- a/lib/bundler/ui.rb
+++ b/lib/bundler/ui.rb
@@ -17,7 +17,7 @@ module Bundler
def confirm(message, newline = nil)
end
- def debugging?
+ def debug?
false
end
@@ -50,8 +50,9 @@ module Bundler
@quiet = true
end
- def debugging?
- @debug && !@quiet
+ def debug?
+ # needs to be false instead of nil to be newline param to other methods
+ !!@debug && !@quiet
end
def debug!
@@ -59,7 +60,7 @@ module Bundler
end
def debug(msg, newline = nil)
- tell_me(msg, nil, newline) if debugging?
+ tell_me(msg, nil, newline) if debug?
end
private