Class: Debci::HTML::PackageJSON
Instance Attribute Summary
Attributes inherited from Rooted
#root
Instance Method Summary
collapse
Methods inherited from Rooted
#datadir, #initialize
Instance Method Details
#history(job_history) ⇒ Object
150
151
152
153
154
155
156
157
158
|
# File 'lib/debci/html.rb', line 150
def history(job_history)
package = job_history.package
suite = job_history.suite
arch = job_history.arch
write_json(
job_history,
[suite, arch, package.prefix, package.name, 'history.json']
)
end
|
#latest(job_history) ⇒ Object
160
161
162
163
164
165
166
167
168
|
# File 'lib/debci/html.rb', line 160
def latest(job_history)
package = job_history.package
suite = job_history.suite
arch = job_history.arch
write_json(
job_history.last,
[suite, arch, package.prefix, package.name, 'latest.json']
)
end
|