abstract class CrConfig::Providers::AbstractProvider

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

Defined in:

cr-config/abstract_provider.cr

Instance Method Summary

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


[View source]