Module: Reedb::Config::Master
- Includes:
- Reedb
- Defined in:
- lib/reedb.rb
Constant Summary
Constants included from Reedb
Reedb::CERT_PATH, DEBOUNCE_DELTA, DEB_ADD, DEB_REM, DEFAULT_PATH, EXIT_CORRUPT_FS, EXIT_HTTP_MALFUNCT, EXIT_MISSING_USER_CODE, EXIT_OS_PARSE, EXIT_PANIC_INTERUPT, EXIT_STILL_LOCKED, FILE_CACHE_TIME, KEY_CACHE_TIME, KEY_PATH, NET_PORT, THREAD_TIMEOUT_TIME, TOKEN_BYTE_SIZE, VERSION
Class Method Summary collapse
-
.clean_config ⇒ Object
Cleans the config file of broken vaults and config items.
-
.get_operation_path ⇒ Object
Because Reedb can be operated out of different paths at runtime (or initiation) this function in the Config::Master interface returns the path that this Reedb instance is keeping it’s config.
-
.global_timeout(dt) ⇒ Object
Set a global timeout time to all vaults.
-
.logging_state(state) ⇒ Object
Set the log state of the daemon.
-
.passphrase_length(length) ⇒ Object
Define a minimal passphrase length for vaults to have.
Methods included from Reedb
archos, daemon?, included, passlength, verbose?
Class Method Details
.clean_config ⇒ Object
Cleans the config file of broken vaults and config items. This is being done by default when operating in cleanup mode.
500 501 502 |
# File 'lib/reedb.rb', line 500 def clean_config end |
.get_operation_path ⇒ Object
Because Reedb can be operated out of different paths at runtime (or initiation) this function in the Config::Master interface returns the path that this Reedb instance is keeping it’s config.
Because of this, external applications can write their configs into $(OPERAND_PATH)/apps if they do not bring their own configs directory.
494 495 |
# File 'lib/reedb.rb', line 494 def get_operation_path end |
.global_timeout(dt) ⇒ Object
Set a global timeout time to all vaults. Determine when a vault will be unloaded or the daemon will lock itself. Time provided in seconds
466 467 468 |
# File 'lib/reedb.rb', line 466 def global_timeout(dt) Reedb::debouncer.set_custom_timeout(dt) end |
.logging_state(state) ⇒ Object
Set the log state of the daemon. That determines what error calls will be logged and what will be ommited.
473 474 475 |
# File 'lib/reedb.rb', line 473 def logging_state(state) state << '' end |
.passphrase_length(length) ⇒ Object
Define a minimal passphrase length for vaults to have. This can break access to vaults if they were created on a different system so be careful with this!
481 482 483 |
# File 'lib/reedb.rb', line 481 def passphrase_length(length) length << '' end |