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

13 lines
215 B
Ruby

require "tap"
module Homebrew
def tap_pin
ARGV.named.each do |name|
tap = Tap.fetch(name)
raise "#{tap} is not allowed" if tap.core_tap?
tap.pin
ohai "Pinned #{tap}"
end
end
end