aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorMax Howell2012-08-21 11:39:45 -0400
committerMax Howell2012-08-21 12:09:05 -0400
commita9e43d65a171ffc5fa355eeafebc967adc25b67f (patch)
treedebbd7f7338c0b7133f27a7f574063fd8395b125 /Library/Homebrew/cmd/options.rb
parent0fc9b210fe566ae281db9eebf5115dafe66544f9 (diff)
downloadhomebrew-a9e43d65a171ffc5fa355eeafebc967adc25b67f.tar.bz2
Formula.Enumerable
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 2f64f5b39..9cb41f7bb 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -3,11 +3,11 @@ require 'cmd/outdated'
def ff
if ARGV.include? "--all"
- Formula.all
+ Formula
elsif ARGV.include? "--installed"
# outdated brews count as installed
outdated = Homebrew.outdated_brews.collect{ |b| b.name }
- Formula.all.select do |f|
+ Formula.select do |f|
f.installed? or outdated.include? f.name
end
else