Class: Inspec::Reporters::Yaml
- Defined in:
- lib/inspec/reporters/yaml.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
5 6 7 |
# File 'lib/inspec/reporters/yaml.rb', line 5 def render output(Inspec::Reporters::Json.new({ run_data: run_data }).report.to_yaml, false) end |
#report ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/inspec/reporters/yaml.rb', line 9 def report { platform: platform, profiles: profiles, statistics: { duration: run_data[:statistics][:duration], }, version: run_data[:version], } end |