Move Formula.all to compat

This commit is contained in:
Jack Nagel 2013-03-20 22:20:30 -05:00
parent edeb5e2397
commit c79d7272c8
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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