Formulary.core_path: use CoreFormulaRepository#formula_dir

This commit is contained in:
Xu Cheng 2015-12-06 21:47:34 +08:00
parent b810c034b7
commit 061a34b138

View File

@ -326,7 +326,7 @@ class Formulary
end
def self.core_path(name)
Pathname.new("#{HOMEBREW_LIBRARY}/Formula/#{name.downcase}.rb")
CoreFormulaRepository.instance.formula_dir/"#{name.downcase}.rb"
end
def self.tap_paths(name, taps = Dir["#{HOMEBREW_LIBRARY}/Taps/*/*/"])