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
184
185
186
|
# File 'lib/debci/html.rb', line 184
def datadir
'feeds'
end
|
#package(pkg) ⇒ Object
188
189
190
191
192
193
194
195
196
197
198
199
|
# File 'lib/debci/html.rb', line 188
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
|