From b06e9ce841a1788f5f9247821cefa4445424a514 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 4 Jul 2010 09:56:50 -0700 Subject: [PATCH] external command 'brew readall' that tries to import all brews This can be useful for debugging when making changes to formula.rb, since that can cause problems across all formuale. --- Library/Contributions/examples/brew-readall.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 Library/Contributions/examples/brew-readall.rb diff --git a/Library/Contributions/examples/brew-readall.rb b/Library/Contributions/examples/brew-readall.rb new file mode 100755 index 0000000000..1a0c7ebe21 --- /dev/null +++ b/Library/Contributions/examples/brew-readall.rb @@ -0,0 +1,7 @@ +# `brew readall` tries to import all formulae one-by-one. +# This can be useful for debugging issues across all formulae +# when making significant changes to formula.rb + +require 'formula' +names = [] +Formulary.read_all { |name, klass| names << name }