diff options
| author | Max Howell | 2009-09-21 21:41:14 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-21 22:02:35 +0100 |
| commit | 444e2e05fcd8a0d036ebe461c9582dd713a36439 (patch) | |
| tree | 7b1502622241b96c1c0b740b54bf7194b528987b | |
| parent | 01b85d85211502acf0664b66e983fe2f4ad209d9 (diff) | |
| download | brew-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-x | bin/brew | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |
