Class: Dradis::Plugins::Projects::Export::Template

Inherits:
Export::Base
  • Object
show all
Defined in:
lib/dradis/plugins/projects/export/template.rb

Direct Known Subclasses

V1::Template, V4::Template

Instance Method Summary collapse

Instance Method Details

#export(args = {}) ⇒ Object

This method returns an XML representation of current repository which includes Categories, Nodes and Notes



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dradis/plugins/projects/export/template.rb', line 5

def export(args={})
  builder = Builder::XmlMarkup.new
  builder.instruct!
  result = builder.tag!('dradis-template', version: version) do |template_builder|
    build_nodes(template_builder)
    build_issues(template_builder)
    build_methodologies(template_builder)
    build_categories(template_builder)
    build_tags(template_builder)
    build_report_content(template_builder)
  end
  return result
end