Exception: Vault::MissingTokenError

Inherits:
VaultError
  • Object
show all
Defined in:
lib/vault/errors.rb

Instance Method Summary collapse

Constructor Details

#initializeMissingTokenError

Returns a new instance of MissingTokenError.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/vault/errors.rb', line 5

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