lib/tasks/churn.rake in p8-metric_fu-0.8.4 vs lib/tasks/churn.rake in p8-metric_fu-0.8.4.1
- old
+ new
@@ -2,10 +2,9 @@
namespace :metrics do
desc "Which files change the most"
task :churn do
- churn_dir = File.join(MetricFu::BASE_DIRECTORY, 'churn')
- MetricFu::Churn.generate_report(churn_dir, defined?(MetricFu::CHURN_OPTIONS) ? MetricFu::CHURN_OPTIONS : {} )
- system("open #{churn_dir}/index.html") if PLATFORM['darwin']
+ MetricFu.generate_churn_report
+ system("open #{CHURN_DIR}/index.html") if PLATFORM['darwin']
end
end