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