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 }