Class: SecretsCli::Vault::Auth
- Includes:
- Helpers
- Defined in:
- lib/secrets_cli/vault/auth.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options) ⇒ Auth
constructor
A new instance of Auth.
Methods included from Helpers
#config, #error, #error!, #pastel, #print_verbose, #prompt
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ Auth
Returns a new instance of Auth.
6 7 8 9 10 11 12 13 |
# File 'lib/secrets_cli/vault/auth.rb', line 6 def initialize() super SecretsCli::Check::Vault.new().call @auth_method = ENV['VAULT_AUTH_METHOD'] @auth_token = ENV['VAULT_AUTH_TOKEN'] @auth_app_id = ENV['VAULT_AUTH_APP_ID'] @auth_user_id = ENV['VAULT_AUTH_USER_ID'] end |