Method: InspecTools::Inspec#to_xccdf
- Defined in:
- lib/inspec_tools/inspec.rb
#to_xccdf(attributes, verbose = false) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/inspec_tools/inspec.rb', line 36 def to_xccdf(attributes, verbose = false) @data = Utils::InspecUtil.parse_data_for_xccdf(@json) @attribute = attributes @attribute = {} if @attribute.eql? false @verbose = verbose @benchmark = HappyMapperTools::Benchmark::Benchmark.new populate_header # populate_profiles @todo populate profiles; not implemented now because its use is deprecated populate_groups @benchmark.to_xml end |