Method: PDK::Validate.validator_hash
- Defined in:
- lib/pdk/validate.rb
.validator_hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/pdk/validate.rb', line 55 def self.validator_hash # TODO: This isn't the most performant... But with only 6 items, it's fine @validator_hash ||= [ ControlRepo::ControlRepoValidatorGroup, Metadata::MetadataValidatorGroup, Puppet::PuppetValidatorGroup, Ruby::RubyValidatorGroup, Tasks::TasksValidatorGroup, YAML::YAMLValidatorGroup ].to_h { |klass| [klass.new.name, klass] }.freeze end |