Class: HappyMapperTools::CCIAttributes::CCI_List
- Includes:
- HappyMapper
- Defined in:
- lib/happy_mapper_tools/cci_attributes.rb
Instance Method Summary collapse
Instance Method Details
#fetch_nists(ccis) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# 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 |