class AwsAssumeRole::Credentials::Factories::Shared

Public Class Methods

new(options = {}) click to toggle source
# File lib/aws_assume_role/credentials/factories/shared.rb, line 10
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