Class: Inspec::Reporters::Json
- Defined in:
- lib/inspec/reporters/json.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #output, #rendered_output
Constructor Details
This class inherits a constructor from Inspec::Reporters::Base
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/inspec/reporters/json.rb', line 7 def render report = { platform: platform, profiles: profiles, statistics: { duration: run_data[:statistics][:duration] }, version: run_data[:version], controls: controls, other_checks: run_data[:other_checks], } output(report.to_json) end |