New command brew irb

Works rather damn well.

I considered `brew -i`, but we aren't a shell.
This commit is contained in:
Max Howell 2012-08-06 14:41:55 -04:00
parent 0152b34839
commit 7c8a2656f0

View File

@ -0,0 +1,11 @@
module Homebrew extend self
def irb
if ARGV.include? "--help"
puts "Formula.factory('ace').installed?"
else
ohai "Interactive Homebrew Shell"
puts "Example commands available with: brew irb --help"
exec "irb", "-I#{HOMEBREW_REPOSITORY}/Library/Homebrew", "-rglobal"
end
end
end