aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-20 22:20:30 -0500
committerJack Nagel2013-03-20 22:32:56 -0500
commitba38f0937be07416e51d09941922305ce94dfcb9 (patch)
treeb13665689582285bcd5f6273bb50b18f154cf22c /Library
parentc4c2c029b305178d19988ab0949b0f338e41c0fe (diff)
downloadhomebrew-ba38f0937be07416e51d09941922305ce94dfcb9.tar.bz2
Move Formula.all to compat
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/compat/compatibility.rb5
-rw-r--r--Library/Homebrew/formula.rb4
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