Class: Omnivault::V1CredentialProvider
- Inherits:
-
Object
- Object
- Omnivault::V1CredentialProvider
- Includes:
- AWS::Core::CredentialProviders::Provider
- Defined in:
- lib/omnivault/v1_credential_provider.rb
Instance Attribute Summary collapse
-
#vault ⇒ Object
Returns the value of attribute vault.
Instance Method Summary collapse
-
#get_credentials ⇒ Object
rubocop:disable AccessorMethodName.
-
#initialize(vault) ⇒ V1CredentialProvider
constructor
A new instance of V1CredentialProvider.
Constructor Details
#initialize(vault) ⇒ V1CredentialProvider
Returns a new instance of V1CredentialProvider.
9 10 11 |
# File 'lib/omnivault/v1_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/v1_credential_provider.rb', line 7 def vault @vault end |
Instance Method Details
#get_credentials ⇒ Object
rubocop:disable AccessorMethodName
14 15 16 17 18 19 |
# File 'lib/omnivault/v1_credential_provider.rb', line 14 def get_credentials { access_key_id: vault.fetch('AWS_ACCESS_KEY_ID'), secret_access_key: vault.fetch('AWS_SECRET_ACCESS_KEY') } end |