Method: Reedb::Vault.access_vault
- Defined in:
- lib/reedb.rb
.access_vault(uuid, passphrase) ⇒ Object
!!! NOT IMPLEMENTED YET !!!
ONLY PERMITTED WHEN IN NO_TOKEN MODE! Loads a vault with a UUID and passphrase into the current vault set. Ignores the token set (as not applicable when in token mode) and simply returns a confirmation that vault access was granted.
611 612 613 614 615 616 617 618 619 620 621 622 |
# File 'lib/reedb.rb', line 611 def access_vault(uuid, passphrase) raise MissingTokenError.new, 'Reedb is running in token mode. Please specify a token via the DAEMON module access handler' unless @@no_token raise FunctionNotImplementedError.new, 'This has not been implemented yet! Use token authentication via the DAEMON module.' return false # debouncer_token = generate_token(uuid, path) # check = Reedb::mirror_debounce(uuid, debouncer_token, Reedb::DEB_ADD) # Reedb::remove_token(uuid, debouncer_token) unless check end |