Module: Kontena::Cli::Stacks::YAML::Validations::CustomValidators

Defined in:
lib/kontena/cli/stacks/yaml/validations.rb,
lib/kontena/cli/stacks/yaml/custom_validators/build_validator.rb,
lib/kontena/cli/stacks/yaml/custom_validators/hooks_validator.rb,
lib/kontena/cli/stacks/yaml/custom_validators/extends_validator.rb,
lib/kontena/cli/stacks/yaml/custom_validators/secrets_validator.rb,
lib/kontena/cli/stacks/yaml/custom_validators/affinities_validator.rb,
lib/kontena/cli/stacks/yaml/custom_validators/certificates_validator.rb

Defined Under Namespace

Classes: AffinitiesValidator, BuildValidator, CertificatesValidator, ExtendsValidator, HooksValidator, SecretsValidator

Class Method Summary collapse

Class Method Details

.loadObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/kontena/cli/stacks/yaml/validations.rb', line 11

def self.load
  return if @loaded
  HashValidator.append_validator(AffinitiesValidator.new)
  HashValidator.append_validator(BuildValidator.new)
  HashValidator.append_validator(ExtendsValidator.new)
  HashValidator.append_validator(SecretsValidator.new)
  HashValidator.append_validator(CertificatesValidator.new)
  HashValidator.append_validator(HooksValidator.new)
  @loaded = true
end