Module: VaultApi::Connection
- Included in:
- API
- Defined in:
- lib/vault_api/connection.rb
Instance Method Summary collapse
-
#connection ⇒ Object
private.
Instance Method Details
#connection ⇒ Object
private
8 9 10 11 12 13 14 15 16 |
# File 'lib/vault_api/connection.rb', line 8 def connection if token connection_obj = Vault::Client.new(address: address, token: token) else connection_obj = Vault::Client.new(address: address) connection_obj.auth.userpass(user, password) end connection_obj end |