aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap-unpin.rb
blob: dd4b69aaada3813f32a65e861087e2c5d1340824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "tap"

module Homebrew
  def tap_unpin
    ARGV.named.each do |name|
      tap = Tap.fetch(name)
      raise "unpinning #{tap} is not allowed" if tap.core_tap?
      tap.unpin
      ohai "Unpinned #{tap}"
    end
  end
end