class ComplexConfig::Provider
def key_source(pathname = nil)
-
(ComplexConfig::KeySource, nil)- A KeySource object containing the
Parameters:
-
pathname(String, nil) -- The path to a configuration file that may
def key_source(pathname = nil) [ ComplexConfig::KeySource.new(var: @key), ComplexConfig::KeySource.new(pathname: pathname), ComplexConfig::KeySource.new(env_var: 'COMPLEX_CONFIG_KEY'), ComplexConfig::KeySource.new(env_var: 'RAILS_MASTER_KEY'), ComplexConfig::KeySource.new(master_key_pathname: master_key_pathname), ].find(&:key) end