Method: Reedb::Vault.available_vaults
- Defined in:
- lib/reedb.rb
.available_vaults ⇒ Object
Returns a list of all vaults tracked by Reedb (by the current user). Vaults are ordered in a dictionary under their UUID that’s used by the Reedb daemon.
542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/reedb.rb', line 542 def available_vaults available = {} @@config[:vaults].each do |uuid, value| # puts @@config[:vaults][uuid] available[uuid] = {} available[uuid][:name] = value[:meta].name available[uuid][:path] = value[:meta].path available[uuid][:size] = value[:meta].size end return available end |