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
commit9274f7cda1e2261e581979887ca15ba41fef6bd9 (patch)
treee5f477ee0b69111b496987e9c19d9419b6693305 /Library/Homebrew/cmd/options.rb
parentc5266654ff1ff31ff9a53ce2098c7423e0449c19 (diff)
downloadbrew-9274f7cda1e2261e581979887ca15ba41fef6bd9.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