Module: ComplexConfig

Defined in:
lib/complex_config.rb,
lib/complex_config/tree.rb,
lib/complex_config/proxy.rb,
lib/complex_config/config.rb,
lib/complex_config/errors.rb,
lib/complex_config/railtie.rb,
lib/complex_config/version.rb

Overview

Main namespace module for the ComplexConfig library

This module serves as the root namespace for all components of the ComplexConfig system, providing configuration management, encryption capabilities, and structured access to YAML-based configuration data with support for environment-specific settings and plugin-based attribute resolution.

Defined Under Namespace

Modules: Plugins Classes: AttributeMissing, ComplexConfigError, Config, ConfigurationFileMissing, ConfigurationSyntaxError, DecryptionFailed, Encryption, EncryptionError, EncryptionKeyInvalid, EncryptionKeyMissing, KeySource, Provider, Proxy, Railtie, Settings, Tree

Constant Summary collapse

VERSION =

ComplexConfig version

'0.24.0'
VERSION_ARRAY =

:nodoc:

VERSION.split('.').map(&:to_i)
VERSION_MAJOR =

:nodoc:

VERSION_ARRAY[0]
VERSION_MINOR =

:nodoc:

VERSION_ARRAY[1]
VERSION_BUILD =

:nodoc:

VERSION_ARRAY[2]

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Config

Configures the ComplexConfig system with the provided settings

This is the main entry point for configuring ComplexConfig. It creates a configuration object, yields it to the provided block for customization, and applies the configuration to the provider.

Yields:

  • (config)

    Yields the configuration object for setup

Yield Parameters:

  • config (Config)

    The configuration object to modify

Returns:

  • (Config)

    The configured object



71
72
73
74
75
76
# File 'lib/complex_config/config.rb', line 71

def self.configure
  config = Config.new
  yield config
  ComplexConfig::Provider.configure_with config
  config
end