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



149
150
151
152
153
154
155
156
157
# File 'lib/debci/html.rb', line 149

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



159
160
161
162
163
164
165
166
167
# File 'lib/debci/html.rb', line 159

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