Class: AbideDevUtils::XCCDF::CisControl
- Inherits:
-
XccdfElement
- Object
- XccdfObject
- XccdfElement
- AbideDevUtils::XCCDF::CisControl
- Defined in:
- lib/abide_dev_utils/xccdf.rb
Constant Summary
Constants included from Common
AbideDevUtils::XCCDF::Common::CIS_CONTROL_NUMBER, AbideDevUtils::XCCDF::Common::CIS_CONTROL_PARTS, AbideDevUtils::XCCDF::Common::CIS_LEVEL_CODE, AbideDevUtils::XCCDF::Common::CIS_NEXT_GEN_WINDOWS, AbideDevUtils::XCCDF::Common::CIS_PROFILE_PARTS, AbideDevUtils::XCCDF::Common::CIS_TITLE_MARKER, AbideDevUtils::XCCDF::Common::CONTROL_PARTS, AbideDevUtils::XCCDF::Common::CONTROL_PREFIX, AbideDevUtils::XCCDF::Common::PROFILE_PARTS, AbideDevUtils::XCCDF::Common::STIG_CONTROL_PARTS, AbideDevUtils::XCCDF::Common::STIG_PROFILE_PARTS, AbideDevUtils::XCCDF::Common::STIG_TITLE_MARKER, AbideDevUtils::XCCDF::Common::UNDERSCORED, AbideDevUtils::XCCDF::Common::XPATHS
Instance Method Summary collapse
-
#initialize(control, benchmark) ⇒ CisControl
constructor
A new instance of CisControl.
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) ⇒ CisControl
Returns a new instance of CisControl.
659 660 661 662 663 |
# File 'lib/abide_dev_utils/xccdf.rb', line 659 def initialize(control, benchmark) super(control, benchmark) @number, @level, @title = control_parts(control_profile_text(control)) properties :number, :level, :title end |