Module: OnlyofficeTestrailWrapper::ProjectCleanup
- Included in:
- TestrailProject
- Defined in:
- lib/onlyoffice_testrail_wrapper/testrail_project/project_cleanup.rb
Overview
Methods to perform project cleanup
Instance Method Summary collapse
-
#close_old_runs(days_old = 2) ⇒ nil
Close old runs in project, older than days count.
Instance Method Details
#close_old_runs(days_old = 2) ⇒ nil
Close old runs in project, older than days count
9 10 11 12 13 14 |
# File 'lib/onlyoffice_testrail_wrapper/testrail_project/project_cleanup.rb', line 9 def close_old_runs(days_old = 2) OnlyofficeLoggerHelper.log("Going to close runs for #{name}, days old: #{days_old}") runs = runs_older_than_days(days_old) OnlyofficeLoggerHelper.log("Old runs number: #{runs.size} for #{name}, days old: #{days_old}") runs.each(&:close) end |