Permalink
Browse files

. rake stat

  • Loading branch information...
1 parent 9585a29 commit 3fc81f7f6b5ad119ccc8b296717597313998050d @kschiess committed Mar 9, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 Rakefile
View
@@ -40,3 +40,11 @@ Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
+desc "Prints LOC stats"
+task :stat do
+ %w(lib spec example).each do |dir|
+ loc = %x(find #{dir} -name "*.rb" | xargs wc -l | grep 'total').split.first.to_i
+ printf("%20s %d\n", dir, loc)
+ end
+end
+

0 comments on commit 3fc81f7

Please sign in to comment.