class LambdaVaultAuth
Public Class Methods
vault()
click to toggle source
LambdaVaultAuth.vault
returns a wrapped vault which contains a few convenience accessors/helpers to help manage the lifecycle of a vault and access the credentials
# File lib/lambda_vault_auth.rb, line 81 def self.vault @vault ||= Vaulter.new return @vault.client unless @vault.expired? if @vault.renewable? && @vault.should_renew? @vault.renew! return @vault.client end # Otherwise, authenticate @vault.authenticate! # return the vault client directly @vault.client end