Class: Lita::ConfigurationValidator Private
- Inherits:
-
Object
- Object
- Lita::ConfigurationValidator
- Defined in:
- lib/lita/configuration_validator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Validates a registry’s configuration, checking for required attributes that are missing.
Instance Method Summary collapse
-
#call ⇒ void
private
Validates adapter and handler configuration.
-
#initialize(registry) ⇒ ConfigurationValidator
constructor
private
A new instance of ConfigurationValidator.
Constructor Details
#initialize(registry) ⇒ ConfigurationValidator
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.
Returns a new instance of ConfigurationValidator.
7 8 9 |
# File 'lib/lita/configuration_validator.rb', line 7 def initialize(registry) @registry = registry end |
Instance Method Details
#call ⇒ void
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.
This method returns an undefined value.
Validates adapter and handler configuration. Logs a fatal warning and aborts if any required configuration attributes are missing.
14 15 16 17 |
# File 'lib/lita/configuration_validator.rb', line 14 def call validate_adapters validate_handlers end |