Merge pull request #240 from diezcami/brew-upgrade

Added brew_upgrade rule
This commit is contained in:
Vladimir Iakovlev
2015-06-02 08:46:57 +03:00
3 changed files with 30 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Appends --all to the brew upgrade command
#
# Example:
# > brew upgrade
# Warning: brew upgrade with no arguments will change behaviour soon!
# It currently upgrades all formula but this will soon change to require '--all'.
#
#
def match(command, settings):
return (command.script == 'brew upgrade')
def get_new_command(command, settings):
return command.script + ' --all'