Class: Dsv::Secret
- Inherits:
-
Object
- Object
- Dsv::Secret
- Defined in:
- lib/dsv/secret.rb
Constant Summary collapse
- SECRETS_RESOURCE =
"secrets".freeze
Class Method Summary collapse
-
.fetch(vault, path) ⇒ Hash
Fetch secrets from the server.
Class Method Details
.fetch(vault, path) ⇒ Hash
Fetch secrets from the server
11 12 13 14 15 |
# File 'lib/dsv/secret.rb', line 11 def self.fetch(vault, path) @vault = vault @secret = @vault.accessResource("GET", SECRETS_RESOURCE, path, nil) end |