Sha256: 0b8fc1f956c060565a60ac678ea0d801fc7671e49d05ec9820a01a20e53cf713

Contents?: true

Size: 611 Bytes

Versions: 7

Compression:

Stored size: 611 Bytes

Contents

module Dradis
  module Plugins
    module PdfExport

      class BaseController < Dradis::Plugins::Export::BaseController
        # This method cycles throw the notes in the reporting category and creates
        # a simple PDF report with them.
        def index
          exporter = Dradis::Plugins::PdfExport::Exporter.new(export_options)
          pdf      = exporter.export

          send_data pdf.render, filename: "dradis_report-#{Time.now.to_i}.pdf",
                                type: 'application/pdf',
                                disposition: 'inline'
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dradis-pdf_export-4.7.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.6.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.5.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.4.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.3.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.2.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb
dradis-pdf_export-4.1.0 app/controllers/dradis/plugins/pdf_export/base_controller.rb