Permalink
Browse files

Add brew-pip and brew-gem support.

They work just like install, but using the appropriate extension.
  • Loading branch information...
1 parent 3181c37 commit 750ef38334587dd41f2e540736d6008834b07208 Second Planet committed Sep 13, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 brew-growl.rb
View
@@ -108,6 +108,22 @@ def growl_exists?
else
error_notifier.notify!
end
+ when 'gem'
+ package = ARGV[1..ARGV.length].join(", ")
+ system "#{BREW_PREFIX}/bin/brew gem #{ARGV[1..ARGV.length].join(" ")} 2>&1"
+ if $?.exitstatus == 0
+ install_notifier.notify!
+ else
+ error_notifier.notify!
+ end
+ when 'pip'
+ package = ARGV[1..ARGV.length].join(", ")
+ system "#{BREW_PREFIX}/bin/brew pip #{ARGV[1..ARGV.length].join(" ")} 2>&1"
+ if $?.exitstatus == 0
+ install_notifier.notify!
+ else
+ error_notifier.notify!
+ end
when 'uninstall'
package = ARGV[1..ARGV.length].join(", ")
system "#{BREW_PREFIX}/bin/brew uninstall #{ARGV[1..ARGV.length].join(" ")} 2>&1"

0 comments on commit 750ef38

Please sign in to comment.