Module: Legion::Crypt::Helper
- Defined in:
- lib/legion/crypt/helper.rb
Instance Method Summary collapse
- #vault_exist?(path = nil) ⇒ Boolean
- #vault_get(path = nil) ⇒ Object
- #vault_namespace ⇒ Object
- #vault_write(path, **data) ⇒ Object
Instance Method Details
#vault_exist?(path = nil) ⇒ Boolean
18 19 20 |
# File 'lib/legion/crypt/helper.rb', line 18 def vault_exist?(path = nil) Legion::Crypt.exist?(vault_path(path)) end |
#vault_get(path = nil) ⇒ Object
10 11 12 |
# File 'lib/legion/crypt/helper.rb', line 10 def vault_get(path = nil) Legion::Crypt.get(vault_path(path)) end |
#vault_namespace ⇒ Object
6 7 8 |
# File 'lib/legion/crypt/helper.rb', line 6 def vault_namespace @vault_namespace ||= derive_vault_namespace end |