Sha256: 00f38ff179b4c6bf87132959983f690d6549637de3c4023d3db649b3d0bf721b
Contents?: true
Size: 362 Bytes
Versions: 14
Compression:
Stored size: 362 Bytes
Contents
module Utils class CisToNist def self.get_mapping(mapping_file) path = File.expand_path(File.join(File.expand_path(__dir__), '..', 'data', mapping_file)) raise "CIS to NIST control mapping does not exist at #{path}. Has it been generated?" unless File.exist?(path) mapping = File.open(path) Marshal.load(mapping) end end end
Version data entries
14 entries across 14 versions & 1 rubygems