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.
This commit is contained in:
Max Howell 2009-09-21 21:41:14 +01:00
parent 01b85d8521
commit 444e2e05fc

View File

@ -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