Class: Lita::ConfigurationValidator Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 4.0.0

Instance Method Summary collapse

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

Parameters:

Since:

  • 4.0.0



7
8
9
# File 'lib/lita/configuration_validator.rb', line 7

def initialize(registry)
  @registry = registry
end

Instance Method Details

#callvoid

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.

Since:

  • 4.0.0



14
15
16
17
# File 'lib/lita/configuration_validator.rb', line 14

def call
  validate_adapters
  validate_handlers
end