Module: RiotKit::EnvConfig
- Defined in:
- lib/riot_kit/env_config.rb
Overview
Applies configuration from ENV (and optionally Rails encrypted credentials). Optional helper; call explicitly from your own initializer if you want env-driven setup.
Constant Summary collapse
- ENV_API_KEY =
'RIOT_API_KEY'- ENV_REGION =
'RIOT_REGION'- ENV_PLATFORM =
'RIOT_PLATFORM'- ENV_HTTP_TIMEOUT =
'RIOT_HTTP_TIMEOUT'- ENV_RETRY_ATTEMPTS =
'RIOT_RETRY_ATTEMPTS'- ENV_RETRY_BASE_DELAY =
'RIOT_RETRY_BASE_DELAY'
Class Method Summary collapse
Class Method Details
.apply(config) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/riot_kit/env_config.rb', line 15 def apply(config) apply_api_key(config) apply_region(config) apply_platform(config) apply_http_timeout(config) apply_retry_attempts(config) apply_retry_base_delay(config) config end |