]>
sourceware.org Git - lvm2.git/blob - report-generators/title_page.rb
1 # Copyright (C) 2010 Red Hat, Inc. All rights reserved.
3 # This copyrighted material is made available to anyone wishing to use,
4 # modify, copy, or redistribute it subject to the terms and conditions
5 # of the GNU General Public License v.2.
7 # You should have received a copy of the GNU General Public License
8 # along with this program; if not, write to the Free Software Foundation,
9 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
11 # This generates the index for the reports, including generation
15 require 'string-store'
18 require 'report_templates'
22 reports
= ReportRegister
.new
25 r
.path
.file
? ? r
.path
.mtime
.to_s
: "not generated"
28 template_store
= TemplateStringStore
.new
30 # FIXME: use generate_report() method
31 erb
= ERB
.new(template_store
.lookup("index.rhtml"))
32 body
= erb
.result(binding
)
33 title
= "Generation times"
35 erb
= ERB
.new(template_store
.lookup("boiler_plate.rhtml"))
36 txt
= erb
.result(binding
)
38 Pathname
.new("reports/index.html").open("w") do |f
|
This page took 0.039419 seconds and 5 git commands to generate.