Class: AbideDevUtils::XCCDF::Profile
- Inherits:
-
XccdfElement
- Object
- XccdfObject
- XccdfElement
- AbideDevUtils::XCCDF::Profile
- 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
-
#initialize(profile, benchmark) ⇒ Profile
constructor
A new instance of Profile.
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(profile, benchmark) ⇒ Profile
Returns a new instance of Profile.
641 642 643 644 645 646 647 |
# File 'lib/abide_dev_utils/xccdf.rb', line 641 def initialize(profile, benchmark) super(profile, benchmark) @level, @title = profile_parts(control_profile_text(profile)) @plain_text_title = @xml.xpath('./title').text @controls = controls_class.new(xpath('./select'), benchmark) properties :title, :level, :plain_text_title, controls: :to_h end |