Method: InspecTools::CSVTool#to_inspec

Defined in:
lib/inspec_tools/csv.rb

#to_inspecObject



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/inspec_tools/csv.rb', line 32

def to_inspec
  @controls = []
  @cci_xml = nil
  @profile = {}
  read_cci_xml
  
  parse_controls
  @profile['controls'] = @controls
  @profile['sha256'] = Digest::SHA256.hexdigest @profile.to_s
  @profile
end