class AwsAssumeRole::Credentials::Factories::AbstractFactory
Attributes
credentials[R]
profile[R]
region[R]
role_arn[R]
Public Class Methods
new(_options)
click to toggle source
# File lib/aws_assume_role/credentials/factories/abstract_factory.rb, line 15 def initialize(_options) raise "Not implemented" end
priority(i)
click to toggle source
# File lib/aws_assume_role/credentials/factories/abstract_factory.rb, line 24 def self.priority(i) @priority = Types::Strict::Integer[i] register_if_complete end
register_if_complete()
click to toggle source
# File lib/aws_assume_role/credentials/factories/abstract_factory.rb, line 29 def self.register_if_complete return unless @type && @priority Repository.register_factory(self, @type, @priority) end
type(str)
click to toggle source
# File lib/aws_assume_role/credentials/factories/abstract_factory.rb, line 19 def self.type(str) @type = Types::Strict::Symbol.enum(:credential_provider, :second_factor_provider, :instance_role_provider)[str] register_if_complete end