Method: Vault::Defaults.token
- Defined in:
- lib/vault/defaults.rb
.token ⇒ String?
The vault token to use for authentiation.
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/vault/defaults.rb', line 52 def token if !ENV["VAULT_TOKEN"].nil? return ENV["VAULT_TOKEN"] end if VAULT_DISK_TOKEN.exist? && VAULT_DISK_TOKEN.readable? return VAULT_DISK_TOKEN.read.chomp end nil end |