Class: Debci::HTML::PackageJSON

Inherits:
Rooted
  • Object
show all
Defined in:
lib/debci/html.rb

Instance Attribute Summary

Attributes inherited from Rooted

#root

Instance Method Summary collapse

Methods inherited from Rooted

#datadir, #initialize

Constructor Details

This class inherits a constructor from Debci::HTML::Rooted

Instance Method Details

#history(hist) ⇒ Object



156
157
158
159
160
161
162
163
164
# File 'lib/debci/html.rb', line 156

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



166
167
168
169
170
171
172
173
174
# File 'lib/debci/html.rb', line 166

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