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(package, suite, arch) ⇒ Object



140
141
142
143
144
145
# File 'lib/debci/html.rb', line 140

def history(package, suite, arch)
  write_json(
    Debci::Job.history(package, suite, arch),
    [suite, arch, package.prefix, package.name, 'history.json']
  )
end

#latest(package, suite, arch) ⇒ Object



147
148
149
150
151
152
# File 'lib/debci/html.rb', line 147

def latest(package, suite, arch)
  write_json(
    Debci::Job.history(package, suite, arch).last,
    [suite, arch, package.prefix, package.name, 'latest.json']
  )
end