lib/dradis/plugins/nexpose/importer.rb in dradis-nexpose-4.3.0 vs lib/dradis/plugins/nexpose/importer.rb in dradis-nexpose-4.4.0

- old
+ new

@@ -5,10 +5,14 @@ class Importer < Dradis::Plugins::Upload::Importer include Formats::Full include Formats::Simple + def self.templates + { evidence: 'full_evidence', issue: 'full_vulnerability' } + end + # The framework will call this function if the user selects this plugin from # the dropdown list and uploads a file. # @returns true if the operation was successful, false otherwise def import(params={}) file_content = File.read( params[:file] ) @@ -29,6 +33,6 @@ content_service.create_note text: error return false end end end -end \ No newline at end of file +end