Class: Debci::HTML::Autopkgtest
Instance Attribute Summary
Attributes inherited from Rooted
Instance Method Summary collapse
Methods inherited from Rooted
Constructor Details
This class inherits a constructor from Debci::HTML::Rooted
Instance Method Details
#link_latest(job_history) ⇒ Object
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/debci/html.rb', line 185 def link_latest(job_history) package = job_history.package suite = job_history.suite arch = job_history.arch job = job_history.last return unless job link = root / suite / arch / package.prefix / package.name / 'latest-autopkgtest' autopkgtest = Pathname('../../../../../autopkgtest') target = autopkgtest / suite / arch / package.prefix / package.name / job.id.to_s # not atomic, but also not a big deal link.unlink if link.symlink? link.make_symlink(target) end |