Class: Dradis::Plugins::HtmlExport::ReportsController

Inherits:
Export::BaseController
  • Object
show all
Defined in:
app/controllers/dradis/plugins/html_export/reports_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

This method cycles throw the notes in the reporting category and creates a simple HTML report with them.

It uses the template at: ./vendor/plugins/html_export/template.html.erb



9
10
11
12
13
14
15
# File 'app/controllers/dradis/plugins/html_export/reports_controller.rb', line 9

def create
  options = export_params.merge(template: @template_file)
  exporter = Dradis::Plugins::HtmlExport::Exporter.new(options)
  html = exporter.export

  render html: html.html_safe
end