aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/irb.rb
blob: 845747c25c3298b3aebeac580bf3b818520afe17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
      require 'formula'
      require 'keg'
      require 'irb'
      IRB.start
    end
  end
end