Class: SecretsCli::Vault::Auth

Inherits:
Base
  • Object
show all
Includes:
Helpers
Defined in:
lib/secrets_cli/vault/auth.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods included from Helpers

#config, #error, #error!, #pastel, #pretty_diff, #print_verbose, #prompt

Methods inherited from Base

#call

Constructor Details

#initialize(options) ⇒ Auth

Returns a new instance of Auth.



6
7
8
9
10
11
12
13
14
15
# File 'lib/secrets_cli/vault/auth.rb', line 6

def initialize(options)
  super
  SecretsCli::Check::Vault.new(options).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']
  @auth_role_id   = ENV['VAULT_AUTH_ROLE_ID']
  @auth_secret_id = ENV['VAULT_AUTH_SECRET_ID']
end