Skip to content
Peter Boling edited this page May 14, 2021 · 1 revision

Welcome to the rails_stats wiki!

Examples

To create a nice markdown stats.md document that you can add to version control and inject into your build pipeline...

    bundle exec rake "stats[/path/to/your/app]" | sed 's/\+/\|/g' | tee >(sed 's/^[^|]*//g' | sed '/^$/d' > stats-table.md) | grep "Code LOC:" > stats-loc.md && cat stats-table.md stats-loc.md > stats.md && rm stats-table.md stats-loc.md
  • Works in bash or zsh
Clone this wiki locally