19 lines
		
	
	
		
			460 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			460 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| #:  * `--repository`:
 | |
| #:    Display where Homebrew's `.git` directory is located. For standard installs,
 | |
| #:    the `prefix` and `repository` are the same directory.
 | |
| #:
 | |
| #:  * `--repository` <user>`/`<repo>:
 | |
| #:    Display where tap <user>`/`<repo>'s directory is located.
 | |
| 
 | |
| require "tap"
 | |
| 
 | |
| module Homebrew
 | |
|   def __repository
 | |
|     if ARGV.named.empty?
 | |
|       puts HOMEBREW_REPOSITORY
 | |
|     else
 | |
|       puts ARGV.named.map { |tap| Tap.fetch(tap).path }
 | |
|     end
 | |
|   end
 | |
| end
 | 
