Permalink
Browse files

All flog/flag rake tasks.

  • Loading branch information...
1 parent eb374ff commit 0b1d3dadeeadb9808f088c8aa43d6e6428664ad1 @jimweirich committed Feb 8, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 rakelib/metrics.rake
View
@@ -0,0 +1,10 @@
+METRICS_FILES = FileList['lib/**/*.rb']
+
+task :flog, [:all] do |t, args|
+ flags = args.all ? "--all" : ""
+ sh "flog #{flags} #{METRICS_FILES}"
+end
+
+task :flay do
+ sh "flay #{METRICS_FILES}"
+end

0 comments on commit 0b1d3da

Please sign in to comment.