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