Class: AbideDevUtils::Sce::Validate::Strings::PuppetClassValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- AbideDevUtils::Sce::Validate::Strings::PuppetClassValidator
- Defined in:
- lib/abide_dev_utils/sce/validate/strings/puppet_class_validator.rb
Overview
Validates a Puppet Class from a Puppet Strings hash
Direct Known Subclasses
Constant Summary
Constants inherited from BaseValidator
BaseValidator::PDK_DESCRIPTION_REGEX, BaseValidator::PDK_SUMMARY_REGEX, BaseValidator::SAFE_OBJECT_METHODS
Instance Attribute Summary
Attributes inherited from BaseValidator
Instance Method Summary collapse
-
#finding_data(**data) ⇒ Hash
Hash of basic class data to be used in findings.
- #validate_puppet_class ⇒ Object
Methods inherited from BaseValidator
#errors, #errors?, #find_parameter, #find_tag_name, #initialize, #license_tag?, #non_generic_description?, #non_generic_summary?, #select_tag_name, #validate, #warnings, #warnings?
Constructor Details
This class inherits a constructor from AbideDevUtils::Sce::Validate::Strings::BaseValidator
Instance Method Details
#finding_data(**data) ⇒ Hash
Returns Hash of basic class data to be used in findings.
18 19 20 |
# File 'lib/abide_dev_utils/sce/validate/strings/puppet_class_validator.rb', line 18 def finding_data(**data) data end |
#validate_puppet_class ⇒ Object
12 13 14 15 |
# File 'lib/abide_dev_utils/sce/validate/strings/puppet_class_validator.rb', line 12 def validate_puppet_class check_text_or_summary check_params end |