Sha256: bbb71a78a97a0575e4aa8216ab6f968107bcc087bea2020b1a4e7f2a0146b311
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
# frozen_string_literal: true require 'config' Config.setup do |config| # Name of the constant exposing loaded settings config.const_name = 'Settings' # Load environment variables from the `ENV` object and override any # settings defined in files. config.use_env = true # Define ENV variable prefix deciding which variables to load into # config. config.env_prefix = 'SETTINGS' # What string to use as level separator for settings loaded from ENV # variables. Default value of '.' works well with Heroku, but you might # want to change it for example for '__' to easy override settings from # command line, where using dots in variable names might not be allowed # (eg. Bash). config.env_separator = '__' # Ability to process variables names: # * nil - no change # * :downcase - convert to lower case config.env_converter = :downcase end Config.load_and_set_settings('config/settings.yml')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sdr-client-2.0.0 | lib/sdr_client/cli/config.rb |