abstract class CrConfig::Providers::AbstractProvider
- CrConfig::Providers::AbstractProvider
- Reference
- Object
Overview
Base class for all providers.
A configuration provider represents a single source for where configuration values can be
read from, whether it be from a configuration file (SimpleFileProvider
), and environment
variable (EnvVarProvider
), or even a custom location (see ProcProvider
). Configuration
providers have their #populate
method invoked during the building of the configuration class
which lets them provide what config values they have available.
Direct Known Subclasses
- CrConfig::Providers::CommandLineParser
- CrConfig::Providers::DotenvProvider
- CrConfig::Providers::EnvVarProvider
- CrConfig::Providers::FolderConfigProvider
- CrConfig::Providers::FolderProfileConfigProvider
- CrConfig::Providers::JsonProvider
- CrConfig::Providers::ProcProvider
- CrConfig::Providers::ProfileFileConfigProvider
- CrConfig::Providers::SimpleFileProvider
- CrConfig::Providers::YamlProvider
Defined in:
cr-config/abstract_provider.crInstance Method Summary
-
#populate(builder : AbstractBuilder)
This method gets called with the instance of the configuration builder during config building.
Instance Method Detail
abstract
def populate(builder : AbstractBuilder)
#
This method gets called with the instance of the configuration builder during config building.
Use this method to populate the builder with any configuration name / values that this provider... provides