21 lines
479 B
Ruby
21 lines
479 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
|
|
module_function
|
|
|
|
def __repository
|
|
if ARGV.named.empty?
|
|
puts HOMEBREW_REPOSITORY
|
|
else
|
|
puts ARGV.named.map { |tap| Tap.fetch(tap).path }
|
|
end
|
|
end
|
|
end
|