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(hist) ⇒ Object
155
156
157
158
159
160
161
162
163
|
# File 'lib/debci/html.rb', line 155
def history(hist)
package = hist.package
suite = hist.suite
arch = hist.arch
write_json(
hist,
[suite, arch, package.prefix, package.name, 'history.json']
)
end
|
#latest(hist) ⇒ Object
165
166
167
168
169
170
171
172
173
|
# File 'lib/debci/html.rb', line 165
def latest(hist)
package = hist.package
suite = hist.suite
arch = hist.arch
write_json(
hist.last,
[suite, arch, package.prefix, package.name, 'latest.json']
)
end
|