Sha256: 96163bf054753463ba573c43f8610ec81680daa8d9cbb1206f57c5fbe425867d

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

if defined?(RakeFileUtils) # self.respond_to?(:desc)
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
churn-0.0.29 lib/tasks/churn_tasks.rb