Exception: Vault::MissingTokenError
- Inherits:
-
VaultError
- Object
- RuntimeError
- VaultError
- Vault::MissingTokenError
- Defined in:
- lib/vault/errors.rb
Instance Method Summary collapse
-
#initialize ⇒ MissingTokenError
constructor
A new instance of MissingTokenError.
Constructor Details
#initialize ⇒ MissingTokenError
Returns a new instance of MissingTokenError.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vault/errors.rb', line 8 def initialize super <<-EOH Missing Vault token! I cannot make requests to Vault without a token. Please set a Vault token in the client: Vault.token = "42d1dee5-eb6e-102c-8d23-cc3ba875da51" or authenticate with Vault using the Vault CLI: $ vault auth ... or set the environment variable $VAULT_TOKEN to the token value: $ export VAULT_TOKEN="..." Please refer to the documentation for more examples. EOH end |