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

Version Path
aws_assume_role-1.2.3-universal-freebsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.3-universal-darwin lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.3-universal-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.3-universal-openbsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.3 lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.3-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2-universal-darwin lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2-universal-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2-universal-openbsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2-universal-freebsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.2 lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1 lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1-universal-openbsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1-universal-darwin lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1-universal-freebsd lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.1-universal-linux lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.0 lib/aws_assume_role/configuration.rb
aws_assume_role-1.2.0-linux lib/aws_assume_role/configuration.rb