class Risu::Templates::CoverSheet

Public Class Methods

new() click to toggle source
# File lib/risu/templates/cover_sheet.rb, line 27
def initialize
        @template_info =
        {
                :name => "cover_sheet",
                :author => "hammackj",
                :version => "0.0.3",
                :renderer => "PDF",
                :description => "Generates a coversheet with a logo (Example Template)"
        }
end

Public Instance Methods

render(output) click to toggle source
# File lib/risu/templates/cover_sheet.rb, line 38
def render output
        output.image "#{File.expand_path(File.dirname(__FILE__))}/data/nessuslogo.jpg", :scale => 0.2, :position => :left, :vposition => :top

        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"

        text Report.classification.upcase, :align => :center
        text "\n"

        report_title Report.title
        report_subtitle "Coversheet Example"
        report_author "This report was prepared by\n#{Report.author}"

        text "\n\n\n"

        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"
        text "\n"

        text "Nessus is a Registered Trademark of Tenable Network Security, Inc."
end