aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-06 14:41:55 -0400
committerMax Howell2012-08-06 14:41:55 -0400
commitd9fab93cc8eb626dbfc91f078fde212f279e6b29 (patch)
treeb3ad340a6df3598d6fc94cce878d681bc79de8e1 /Library
parente93477c1b4eac4386faa5b721abc7e2c65839867 (diff)
downloadhomebrew-d9fab93cc8eb626dbfc91f078fde212f279e6b29.tar.bz2
New command `brew irb`
Works rather damn well. I considered `brew -i`, but we aren't a shell.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/irb.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/irb.rb b/Library/Homebrew/cmd/irb.rb
new file mode 100644
index 000000000..6b026b356
--- /dev/null
+++ b/Library/Homebrew/cmd/irb.rb
@@ -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