aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd/brew-readall.rb
blob: cdd0d31eaf95f90f92627cefe3a62d5faf9185e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# `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,
# or to determine if any current formulae have Ruby issues

require 'formula'
Formula.names.each do |n|
  begin
    Formula.factory(n)
  rescue Exception => e
    onoe "problem in #{Formula.path(n)}"
    puts e
  end
end