Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'utils'
- class UpdateAll
- def run
- display("Updating homebrew and all installed packages, also cleaning up old packages:")
- safe_system("brew update && brew upgrade && brew cleanup")
- end
- def display(message, &block)
- if $stdout.tty? and not ARGV.flag? '--quiet'
- ohai message
- end
- end
- end
- runner = UpdateAll.new
- runner.run
Add Comment
Please, Sign In to add comment