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



137
138
139
140
141
142
# File 'lib/debci/html.rb', line 137

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



144
145
146
147
148
149
# File 'lib/debci/html.rb', line 144

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