Sha256: 3f141c7db5f1ee28f5959dcb19e16a2329dfe62f771fadc6eb18da8733cb454d
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
module PansophyAuthenticator module Configuration class FromEnv def initialize(base_configuration) @base_configuration = base_configuration end def local local = ENV.fetch('PANSOPHY_AUTHENTICATOR_LOCAL') { @base_configuration.local } local.to_s == 'true' end def bucket_name ENV.fetch('PANSOPHY_AUTHENTICATOR_BUCKET_NAME') { @base_configuration.bucket_name } end def file_path ENV.fetch('PANSOPHY_AUTHENTICATOR_FILE_PATH') { @base_configuration.file_path } end def application ENV.fetch('PANSOPHY_AUTHENTICATOR_APPLICATION') { @base_configuration.application } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems