Method: InspecTools::XCCDF#initialize
- Defined in:
- lib/inspec_tools/xccdf.rb
#initialize(xccdf, replace_tags = nil) ⇒ XCCDF
Returns a new instance of XCCDF.
16 17 18 19 20 21 22 23 |
# File 'lib/inspec_tools/xccdf.rb', line 16 def initialize(xccdf, = nil) @xccdf = xccdf @xccdf = (, @xccdf) unless .nil? cci_list_path = File.join(File.dirname(__FILE__), '../data/U_CCI_List.xml') @cci_items = HappyMapperTools::CCIAttributes::CCI_List.parse(File.read(cci_list_path)) # @cci_items = HappyMapperTools::CCIAttributes::CCI_List.parse(File.read('./data/U_CCI_List.xml')) @benchmark = HappyMapperTools::StigAttributes::Benchmark.parse(@xccdf) end |