Class: Omnivault::V2CredentialProvider
- Inherits:
-
Object
- Object
- Omnivault::V2CredentialProvider
- Includes:
- Aws::CredentialProvider
- Defined in:
- lib/omnivault/v2_credential_provider.rb
Instance Attribute Summary collapse
-
#vault ⇒ Object
Returns the value of attribute vault.
Instance Method Summary collapse
- #credentials ⇒ Object
-
#initialize(vault) ⇒ V2CredentialProvider
constructor
A new instance of V2CredentialProvider.
Constructor Details
#initialize(vault) ⇒ V2CredentialProvider
Returns a new instance of V2CredentialProvider.
9 10 11 |
# File 'lib/omnivault/v2_credential_provider.rb', line 9 def initialize(vault) @vault = vault end |
Instance Attribute Details
#vault ⇒ Object
Returns the value of attribute vault.
7 8 9 |
# File 'lib/omnivault/v2_credential_provider.rb', line 7 def vault @vault end |
Instance Method Details
#credentials ⇒ Object
13 14 15 16 |
# File 'lib/omnivault/v2_credential_provider.rb', line 13 def credentials Aws::Credentials.new(vault.fetch('AWS_ACCESS_KEY_ID'), vault.fetch('AWS_SECRET_ACCESS_KEY')) end |