Class: PDK::Validate::ControlRepo::ControlRepoValidatorGroup

Inherits:
ValidatorGroup show all
Defined in:
lib/pdk/validate/control_repo/control_repo_validator_group.rb

Instance Attribute Summary

Attributes inherited from Validator

#context, #options, #prepared

Instance Method Summary collapse

Methods inherited from ValidatorGroup

#invoke, #prepare_invoke!, #spinner, #spinner_text, #validator_instances

Methods inherited from Validator

#initialize, #invoke, #prepare_invoke!, #spinner, #spinner_text, #spinners_enabled?, #start_spinner, #stop_spinner

Constructor Details

This class inherits a constructor from PDK::Validate::Validator

Instance Method Details

#nameObject



7
8
9
# File 'lib/pdk/validate/control_repo/control_repo_validator_group.rb', line 7

def name
  'control-repo'
end

#valid_in_context?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/pdk/validate/control_repo/control_repo_validator_group.rb', line 11

def valid_in_context?
  context.is_a?(PDK::Context::ControlRepo)
end

#validatorsObject



15
16
17
18
19
# File 'lib/pdk/validate/control_repo/control_repo_validator_group.rb', line 15

def validators
  [
    EnvironmentConfValidator
  ].freeze
end