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
commitc79d7272c89f8f99c88b454cf4b854b727179791 (patch)
tree222d0361981141c8373e26e5fb265b222ab1cd33 /Library
parentedeb5e2397335eae20012409f1e873a4aedc78aa (diff)
downloadbrew-c79d7272c89f8f99c88b454cf4b854b727179791.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