22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/inspec_tools/inspec.rb', line 22
def to_ckl(title = nil, date = nil, cklist = nil)
@data = Utils::InspecUtil.parse_data_for_ckl(@json)
@platform = Utils::InspecUtil.get_platform(@json)
@title = generate_title title, @json, date
@cklist = cklist
@checklist = HappyMapperTools::StigChecklist::Checklist.new
if @cklist.nil?
generate_ckl
else
update_ckl
end
@checklist.to_xml.encode('UTF-8').gsub('<?xml version="1.0"?>', '<?xml version="1.0" encoding="UTF-8"?>').chomp
end
|