aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tap.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 2e12e4844..24b496ebe 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -1,3 +1,5 @@
+require "utils/json"
+
# a {Tap} is used to extend the formulae provided by Homebrew core.
# Usually, it's synced with a remote git repository. And it's likely
# a Github repository with the name of `user/homebrew-repo`. In such
@@ -137,6 +139,15 @@ class Tap
}
end
+ # Hash with tap formula renames
+ def formula_renames
+ @formula_renames ||= if (rename_file = path/"formula_renames.json").file?
+ Utils::JSON.load(rename_file.read)
+ else
+ {}
+ end
+ end
+
def self.each
return unless TAP_DIRECTORY.directory?