aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorXu Cheng2016-03-07 18:04:25 +0800
committerXu Cheng2016-03-07 19:43:46 +0800
commit28f3dae8cd5bf975121090cb58262b8344a3917c (patch)
tree3b2b793a3c715b401d5ef9288d5c108f334e4aa2 /Library/Homebrew/formulary.rb
parent2b32cfe7b0b0171da97a96d6e1f9ed3ec92e7f6c (diff)
downloadbrew-28f3dae8cd5bf975121090cb58262b8344a3917c.tar.bz2
rename CoreFormulaRepository to CoreTap
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index a2f1ad7a1..da70aed2f 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -1,6 +1,5 @@
require "digest/md5"
require "tap"
-require "core_formula_repository"
# The Formulary is responsible for creating instances of Formula.
# It is not meant to be used directy from formulae.
@@ -278,7 +277,7 @@ class Formulary
return FormulaLoader.new(ref, formula_with_that_name)
end
- possible_alias = CoreFormulaRepository.instance.alias_dir/ref
+ possible_alias = CoreTap.instance.alias_dir/ref
if possible_alias.file?
return AliasLoader.new(possible_alias)
end
@@ -292,7 +291,7 @@ class Formulary
return FormulaLoader.new(name, path)
end
- if newref = CoreFormulaRepository.instance.formula_renames[ref]
+ if newref = CoreTap.instance.formula_renames[ref]
formula_with_that_oldname = core_path(newref)
if formula_with_that_oldname.file?
return FormulaLoader.new(newref, formula_with_that_oldname)
@@ -321,7 +320,7 @@ class Formulary
end
def self.core_path(name)
- CoreFormulaRepository.instance.formula_dir/"#{name.downcase}.rb"
+ CoreTap.instance.formula_dir/"#{name.downcase}.rb"
end
def self.tap_paths(name, taps = Dir["#{HOMEBREW_LIBRARY}/Taps/*/*/"])