
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
13 lines
231 B
Ruby
13 lines
231 B
Ruby
require "tap"
|
|
|
|
module Homebrew
|
|
def tap_pin
|
|
ARGV.named.each do |name|
|
|
tap = Tap.fetch(name)
|
|
raise "Homebrew/homebrew is not allowed" if tap.core_tap?
|
|
tap.pin
|
|
ohai "Pinned #{tap.name}"
|
|
end
|
|
end
|
|
end
|