Class: Dradis::Plugins::PdfExport::Processor

Inherits:
Object
  • Object
show all
Includes:
Prawn::View
Defined in:
lib/dradis/plugins/pdf_export/exporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Processor

Returns a new instance of Processor.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/dradis/plugins/pdf_export/exporter.rb', line 7

def initialize(args = {})
  content_service = args[:content_service]
  @document = Prawn::Document.new(top_margin: 70)

  @author = 'Security Tester'
  @email  = 'tester@securitytesting.com'
  @issues = content_service.all_issues
  @notes  = content_service.all_notes
  @title  = "Dradis Framework - v#{Dradis::CE::VERSION::STRING}"

  sort_issues
end

Instance Method Details

#generateObject



20
21
22
23
24
25
26
27
28
# File 'lib/dradis/plugins/pdf_export/exporter.rb', line 20

def generate
  cover_page
  # project_notes

  table_of_contents
  summary_of_findings
  detailed_findings
  tool_list
end