Class: Debci::HTML::Feed
Instance Attribute Summary
Attributes inherited from Rooted
#root
Instance Method Summary
collapse
Methods inherited from Rooted
#initialize
Instance Method Details
#datadir ⇒ Object
202
203
204
|
# File 'lib/debci/html.rb', line 202
def datadir
'feeds'
end
|
#package(pkg) ⇒ Object
206
207
208
209
210
211
212
213
214
215
216
217
|
# File 'lib/debci/html.rb', line 206
def package(pkg)
news = pkg.news
write_feed(news, root / pkg.prefix / "#{pkg.name}.xml") do |feed|
feed.channel.title = "#{pkg.name} CI news feed"
feed.channel.about = Debci.config.url_base + "/packages/#{pkg.prefix}/#{pkg.name}/"
feed.channel.description = [
"News for #{pkg.name}.",
'Includes only state transitions (pass-fail, and fail-pass).',
'Full history is available in the package page and in the published data files.',
].join(' ')
end
end
|