Class: Dradis::Plugins::HtmlExport::Exporter

Inherits:
Export::Base
  • Object
show all
Includes:
ActionView::Helpers::TextHelper
Defined in:
lib/dradis/plugins/html_export/exporter.rb

Instance Method Summary collapse

Instance Method Details

#export(args = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/dradis/plugins/html_export/exporter.rb', line 7

def export(args = {})
  log_report

  with_temporary_template(options[:template]) do |temporary_template|
    erb = ERB.new(File.read(temporary_template))
    erb.result(binding)
  end
end