class HappyMapperTools::CCIAttributes::CCI_List
Public Instance Methods
fetch_nists(ccis)
click to toggle source
# File lib/happy_mapper_tools/cci_attributes.rb, line 49 def fetch_nists(ccis) ccis = [ccis] unless ccis.is_a?(Array) # some of the XCCDF files were having CCE- tags show up which # we don't support, not sure if this is a typo on their part or # we need to see about supporting CCE tags but ... for now filtered_ccis = ccis.select { |f| /CCI-/.match(f) } filtered_ccis.map do |cci| cci_items.find { |item| item.id == cci }.references.max_by(&:version).index end end