From 444e2e05fcd8a0d036ebe461c9582dd713a36439 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 21 Sep 2009 21:41:14 +0100 Subject: [PATCH] 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. --- bin/brew | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/brew b/bin/brew index eae57d15fe..525c0d3904 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