class Object

Public Instance Methods

report_churn(output_string) click to toggle source
# File bin/churn, line 65
def report_churn(output_string)
  options = {:minimum_churn_count => params['minimum_churn_count'].value,
    :ignore_files => params['ignore_files'].value,
    :start_date => params['start_date'].value,
    :data_directory => params['data_directory'].value,
    :history => params['past_history'].value,
    :report => params['report'].value,
    :name => params['name'].value
  }
  result = Churn::ChurnCalculator.new(options).report(output_string)
  unless output_string
    result = YAML::dump(result)
  end
  result
end
run() click to toggle source
# File bin/churn, line 81
def run
  report = report_churn(!params['yaml'].value)
  puts report
end