Sha256: 80b385d9cdb26d58a9b853e148084a8913a0455f4f0d513fc01900410b110960
Contents?: true
Size: 854 Bytes
Versions: 43
Compression:
Stored size: 854 Bytes
Contents
# frozen_string_literal: true require_relative "includes" module AwsAssumeRole class Configuration extend Dry::Configurable Types = Dry::Types.module setting(:backend_plugin, ENV.fetch("AWS_ASSUME_ROLE_KEYRING_PLUGIN", nil)) do |value| Types::Coercible::String[value] end setting(:backend, ENV.fetch("AWS_ASSUME_ROLE_KEYRING_BACKEND", "automatic")) do |value| value == "automatic" ? nil : Types::Coercible::String[value] end setting(:log_level, ENV.fetch("AWS_ASSUME_ROLE_LOG_LEVEL", "WARN")) do |value| { DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, FATAL: 4, UNKNOWN: 5, }[value.to_sym] || 2 end end Config = Configuration.config end
Version data entries
43 entries across 43 versions & 1 rubygems