mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
Formula: add tap? method.
This commit is contained in:
1 parent
e5089a1561
commit
8119a1d9b9
1 file changed
+4
@@ -437,6 +437,10 @@ class Formula
|
||||
Formulary.factory name
|
||||
end
|
||||
|
||||
def tap?
|
||||
!!path.realpath.to_s.match(HOMEBREW_TAP_DIR_REGEX)
|
||||
end
|
||||
|
||||
def tap
|
||||
if path.realpath.to_s =~ HOMEBREW_TAP_DIR_REGEX
|
||||
"#$1/#$2"
|
||||
|
||||
Reference in new issue
Block a user