Method: PostRunner::FitFileStore#check

Defined in:
lib/postrunner/FitFileStore.rb

#checkObject

This methods checks all stored FIT files for correctness, updates all indexes and re-generates all HTML reports.



325
326
327
328
329
330
331
332
333
334
335
# File 'lib/postrunner/FitFileStore.rb', line 325

def check
  records = @store['records']
  records.delete_all_records
  activities.reverse.each do |a|
    a.check
    records.scan_activity_for_records(a)
    a.purge_fit_file
  end
  records.generate_html_reports
  generate_html_index_pages
end