Sha256: 0f687a3d47107624b6728b1068a158e11d045a2d1944661b95fe4717e8b38c69

Contents?: true

Size: 664 Bytes

Versions: 43

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

require_relative "abstract_factory"
require_relative "../providers/shared_keyring_credentials"

class AwsAssumeRole::Credentials::Factories::Shared < AwsAssumeRole::Credentials::Factories::AbstractFactory
    type :credential_provider
    priority 30

    def initialize(options = {})
        logger.debug "Shared Factory initiated with #{options}"
        @profile = options[:profile]
        @credentials = AwsAssumeRole::Credentials::Providers::SharedKeyringCredentials.new(options)
        @region = @credentials.region
        @role_arn = @credentials.role_arn
    rescue Aws::Errors::NoSuchProfileError
        nil
    end
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/credentials/factories/shared.rb
aws_assume_role-1.2.3-universal-darwin lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.3-universal-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.3-universal-openbsd lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.3 lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.3-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2-universal-darwin lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2-universal-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2-universal-openbsd lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2-universal-freebsd lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.2 lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1 lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1-universal-openbsd lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1-universal-darwin lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1-universal-freebsd lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.1-universal-linux lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.0 lib/aws_assume_role/credentials/factories/shared.rb
aws_assume_role-1.2.0-linux lib/aws_assume_role/credentials/factories/shared.rb