Class: AbideDevUtils::XCCDF::StigControl

Inherits:
XccdfElement show all
Defined in:
lib/abide_dev_utils/xccdf.rb

Constant Summary

Constants included from Common

Common::CIS_CONTROL_NUMBER, Common::CIS_CONTROL_PARTS, Common::CIS_LEVEL_CODE, Common::CIS_NEXT_GEN_WINDOWS, Common::CIS_PROFILE_PARTS, Common::CIS_TITLE_MARKER, Common::CONTROL_PARTS, Common::CONTROL_PREFIX, Common::PROFILE_PARTS, Common::STIG_CONTROL_PARTS, Common::STIG_PROFILE_PARTS, Common::STIG_TITLE_MARKER, Common::UNDERSCORED, Common::XPATHS

Instance Method Summary collapse

Methods inherited from XccdfElement

#hiera_title, #reference, #to_h, #to_s

Methods included from Common

#==, #abide_object?, #control_parts, #control_profile_text, #name_normalize_control, #normalize_control_name, #normalize_profile_name, #normalize_string, #number_normalize_control, #profile_parts, #text_normalize, #validate_xccdf, #xpath

Methods inherited from XccdfObject

#control_class, #control_sort_key, #controls_class

Constructor Details

#initialize(control, benchmark) ⇒ StigControl

Returns a new instance of StigControl.



659
660
661
662
663
# File 'lib/abide_dev_utils/xccdf.rb', line 659

def initialize(control, benchmark)
  super(control, benchmark)
  @vulnid, @ruleid = control_parts(control_profile_text(control))
  properties :vulnid, :ruleid
end