aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-09-21 21:41:14 +0100
committerMax Howell2009-09-21 22:02:35 +0100
commit444e2e05fcd8a0d036ebe461c9582dd713a36439 (patch)
tree7b1502622241b96c1c0b740b54bf7194b528987b
parent01b85d85211502acf0664b66e983fe2f4ad209d9 (diff)
downloadbrew-444e2e05fcd8a0d036ebe461c9582dd713a36439.tar.bz2
Remove some ohai() use
Ohai is for titles, to separate sections of output so it is more readable, it truncates long lines for this purpose. So don't use it if the line you are outputting is likely to be long and important. Instead prefix that line with a summary header.
-rwxr-xr-xbin/brew9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/brew b/bin/brew
index eae57d15f..525c0d390 100755
--- a/bin/brew
+++ b/bin/brew
@@ -142,13 +142,14 @@ begin
updater = RefreshBrew.new
old_revision = updater.current_revision
unless updater.update_from_masterbrew!
- ohai "Already up-to-date."
+ puts "Already up-to-date."
else
- ohai "Updated Homebrew from #{old_revision} to #{updater.current_revision}."
+ puts "Updated Homebrew from #{old_revision} to #{updater.current_revision}."
if updater.pending_formulae_changes?
- ohai "The following formulae were updated: #{updater.updated_formulae.join(', ')}"
+ ohai "The following formulae were updated:"
+ puts_columns updater.updated_formulae
else
- ohai "No formulae were updated." unless updater.pending_formulae_changes?
+ puts "No formulae were updated." unless updater.pending_formulae_changes?
end
end