Class: Proxy::OpenSCAP::OvalReportParser
- Inherits:
-
Object
- Object
- Proxy::OpenSCAP::OvalReportParser
- Includes:
- Log
- Defined in:
- lib/smart_proxy_openscap/oval_report_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse_cves(report_data) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/smart_proxy_openscap/oval_report_parser.rb', line 8 def parse_cves(report_data) report = oval_report report_data results = report.definition_results.reduce({}) do |memo, result| memo.tap { |acc| acc[result.definition_id] = parse_cve_res result } end report.definitions.map do |definition| results[definition.id].merge(parse_cve_def definition) end end |