Method: InspecTools::XCCDF#to_inspec

Defined in:
lib/inspec_tools/xccdf.rb

#to_inspecObject



33
34
35
36
37
38
39
40
# File 'lib/inspec_tools/xccdf.rb', line 33

def to_inspec
  @profile = {}
  @controls = []
  
  insert_controls
  @profile['sha256'] = Digest::SHA256.hexdigest @profile.to_s
  @profile
end