Xu Cheng 1e487edd21 tap various commands: use tap name method.
Instead of hard coded `Homebrew/homebrew`
2016-03-07 19:43:46 +08:00

14 lines
259 B
Ruby

require "tap"
module Homebrew
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
ARGV.named.each do |tapname|
tap = Tap.fetch(tapname)
raise "#{tap} is not allowed" if tap.core_tap?
tap.uninstall
end
end
end