Module: AbideDevUtils::Sce::Validate::Strings

Defined in:
lib/abide_dev_utils/sce/validate/strings.rb,
lib/abide_dev_utils/sce/validate/strings/base_validator.rb,
lib/abide_dev_utils/sce/validate/strings/validation_finding.rb,
lib/abide_dev_utils/sce/validate/strings/puppet_class_validator.rb,
lib/abide_dev_utils/sce/validate/strings/puppet_defined_type_validator.rb

Overview

Validation objects and methods for Puppet Strings

Defined Under Namespace

Classes: BaseValidator, PuppetClassValidator, PuppetDefinedTypeValidator, ValidationFinding, Validator

Class Method Summary collapse

Class Method Details

.validate(**opts) ⇒ Object

Convenience method to validate Puppet Strings of current module



13
14
15
16
17
18
# File 'lib/abide_dev_utils/sce/validate/strings.rb', line 13

def self.validate(**opts)
  output = Validator.new(nil, **opts).validate
  output.transform_values do |results|
    results.select { |r| r[:errors].any? || r[:warnings].any? }
  end
end