13 lines
		
	
	
		
			246 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			246 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_formula_repository?
 | |
|       tap.pin
 | |
|       ohai "Pinned #{tap.name}"
 | |
|     end
 | |
|   end
 | |
| end
 | 
