| 
									
										
										
										
											2016-04-17 09:21:02 +02:00
										 |  |  | #:  * `--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. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-23 16:33:40 +08:00
										 |  |  | require "tap" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 22:41:47 -05:00
										 |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2016-09-26 01:44:51 +02:00
										 |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |   def __repository | 
					
						
							| 
									
										
										
										
											2016-03-23 16:33:40 +08:00
										 |  |  |     if ARGV.named.empty? | 
					
						
							|  |  |  |       puts HOMEBREW_REPOSITORY | 
					
						
							|  |  |  |     else | 
					
						
							|  |  |  |       puts ARGV.named.map { |tap| Tap.fetch(tap).path } | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |   end | 
					
						
							|  |  |  | end |