diff options
| author | Adam Vandenberg | 2010-07-04 09:56:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-04 11:23:32 -0700 |
| commit | 404483ed52529d538e2befd2e7cd1b70fa9d92dd (patch) | |
| tree | 6321a1899c59e70c7fe86a905fdf8cd191265022 | |
| parent | ba530cea29a7fdf070c9349c57d58b544480081d (diff) | |
| download | homebrew-404483ed52529d538e2befd2e7cd1b70fa9d92dd.tar.bz2 | |
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.
| -rwxr-xr-x | Library/Contributions/examples/brew-readall.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |
