Method: InspecTools::Inspec#to_xccdf
- Defined in:
- lib/inspec_tools/inspec.rb
#to_xccdf(attributes, verbose = false) ⇒ String
Convert Inspec result data to XCCDF
40 41 42 43 44 45 |
# File 'lib/inspec_tools/inspec.rb', line 40 def to_xccdf(attributes, verbose = false) data = Utils::FromInspec.new.parse_data_for_xccdf(@json) @verbose = verbose Utils::ToXCCDF.new(attributes || {}, data).to_xml(@metadata) end |