Class: Dradis::Plugins::Json::Exporter

Inherits:
Export::Base
  • Object
show all
Defined in:
lib/dradis/plugins/json/exporter.rb

Instance Method Summary collapse

Instance Method Details

#export(args = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/dradis/plugins/json/exporter.rb', line 4

def export(args={})

  issues = content_service.all_issues

  result = issues.map do |issue|
    { issue: issue.fields }
  end

  JSON.pretty_generate(result)
end