Sha256: 6f9b8a716552657dbad914bb3d2bfbc91e15a7b1f2d9801b44a27ddce4111d4e
Contents?: true
Size: 484 Bytes
Versions: 4
Compression:
Stored size: 484 Bytes
Contents
def report_churn() require File.join(File.dirname(__FILE__), '..', 'churn', 'churn_calculator') params = {} { :minimum_churn_count => ENV['CHURN_MINIMUM_CHURN_COUNT'], :start_date => ENV['CHURN_START_DATE'], :ignore_files => ENV['CHURN_IGNORE_FILES'], }.each {|k,v| params[k] = v unless v.nil? } Churn::ChurnCalculator.new(params).report end desc "Report the current churn for the project" task :churn do report = report_churn() puts report end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
churn-0.0.28 | lib/tasks/churn_tasks.rb |
churn-0.0.27 | lib/tasks/churn_tasks.rb |
churn-0.0.26 | lib/tasks/churn_tasks.rb |
churn-0.0.25 | lib/tasks/churn_tasks.rb |