Module: Debci::Test::Paths
- Included in:
- Job
- Defined in:
- lib/debci/test/paths.rb
Instance Method Summary collapse
- #autopkgtest_dir ⇒ Object
- #debci_log ⇒ Object
- #purge_files ⇒ Object
- #result_json ⇒ Object
- #root ⇒ Object
Instance Method Details
#autopkgtest_dir ⇒ Object
10 11 12 |
# File 'lib/debci/test/paths.rb', line 10 def autopkgtest_dir @autopkgtest_dir ||= root / 'autopkgtest' / suite / arch / package.prefix / package.name / run_id.to_s end |
#debci_log ⇒ Object
14 15 16 |
# File 'lib/debci/test/paths.rb', line 14 def debci_log @debci_log ||= root / 'packages' / suite / arch / package.prefix / package.name / "#{run_id}.log" end |
#purge_files ⇒ Object
22 23 24 25 26 |
# File 'lib/debci/test/paths.rb', line 22 def purge_files autopkgtest_dir.rmtree if autopkgtest_dir.directory? debci_log.unlink if debci_log.exist? result_json.unlink if result_json.exist? end |
#result_json ⇒ Object
18 19 20 |
# File 'lib/debci/test/paths.rb', line 18 def result_json @result_json ||= root / 'packages' / suite / arch / package.prefix / package.name / "#{run_id}.json" end |