Sha256: a636994bae43724683a9e38d8f53a3ea553233fa9f377ecbd18c1ce073198198
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
if defined?(RakeFileUtils) # self.respond_to?(:desc) def report_churn() require File.join(File.dirname(__FILE__), '..', 'churn', 'calculator') options = {} { :minimum_churn_count => ENV['CHURN_MINIMUM_CHURN_COUNT'], :start_date => ENV['CHURN_START_DATE'], :ignore_files => ENV['CHURN_IGNORE_FILES'], :data_directory => ENV['CHURN_DATA_DIRECTORY'], }.each {|k,v| options[k] = v unless v.nil? } Churn::ChurnCalculator.new(options).report end desc "Report the current churn for the project" task :churn do report = report_churn() puts report end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
churn-0.0.35 | lib/tasks/churn_tasks.rb |