diff options
| author | Jack Nagel | 2013-03-20 22:20:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-20 22:32:56 -0500 |
| commit | c79d7272c89f8f99c88b454cf4b854b727179791 (patch) | |
| tree | 222d0361981141c8373e26e5fb265b222ab1cd33 /Library | |
| parent | edeb5e2397335eae20012409f1e873a4aedc78aa (diff) | |
| download | brew-c79d7272c89f8f99c88b454cf4b854b727179791.tar.bz2 | |
Move Formula.all to compat
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 5 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index aee5da63f..6a473be47 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -114,6 +114,11 @@ class Formula def recursive_deps Formula.expand_deps(self).flatten.uniq end + + def self.all + opoo "Formula.all is deprecated, use Formula.map instead" + map + end end class UnidentifiedFormula < Formula diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 54da64fea..bd023f8bc 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -302,10 +302,6 @@ class Formula class << self include Enumerable end - def self.all - opoo "Formula.all is deprecated, simply use Formula.map" - map - end def self.installed HOMEBREW_CELLAR.children.map{ |rack| factory(rack.basename) rescue nil }.compact |
