lib/dradis/plugins/zap/importer.rb in dradis-zap-4.3.0 vs lib/dradis/plugins/zap/importer.rb in dradis-zap-4.4.0
- old
+ new
@@ -1,7 +1,10 @@
module Dradis::Plugins::Zap
class Importer < Dradis::Plugins::Upload::Importer
+ def self.templates
+ { evidence: 'evidence', issue: 'issue' }
+ 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={})
@@ -56,6 +59,6 @@
evidence_content = template_service.process_template(template: 'evidence', data: xml_instance)
content_service.create_evidence(issue: issue, node: site_node, content: evidence_content)
end
end
end
-end
\ No newline at end of file
+end