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