From 404483ed52529d538e2befd2e7cd1b70fa9d92dd Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 4 Jul 2010 09:56:50 -0700 Subject: 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 (limited to 'Library') diff --git a/Library/Contributions/examples/brew-readall.rb b/Library/Contributions/examples/brew-readall.rb new file mode 100755 index 000000000..1a0c7ebe2 --- /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 } -- cgit v1.2.3