Class: Popo::Database
- Inherits:
-
Object
- Object
- Popo::Database
- Defined in:
- lib/popo/database.rb
Instance Method Summary collapse
- #boot_database ⇒ Object
- #get(key, group = 'manifest') ⇒ Object
- #get_children(key, group = 'manifest') ⇒ Object
- #has_key?(key, group = 'manifest') ⇒ Boolean
-
#initialize(app_root, options) ⇒ Database
constructor
A new instance of Database.
- #migrate_database ⇒ Object
Constructor Details
#initialize(app_root, options) ⇒ Database
Returns a new instance of Database.
3 4 5 |
# File 'lib/popo/database.rb', line 3 def initialize(app_root, ) @cabler = Palmade::Cableguy::Cabler.new(app_root, ) end |
Instance Method Details
#boot_database ⇒ Object
7 8 9 |
# File 'lib/popo/database.rb', line 7 def boot_database @cabler.boot end |
#get(key, group = 'manifest') ⇒ Object
15 16 17 |
# File 'lib/popo/database.rb', line 15 def get(key, group = 'manifest') @cabler.db.get(key, group) end |
#get_children(key, group = 'manifest') ⇒ Object
19 20 21 |
# File 'lib/popo/database.rb', line 19 def get_children(key, group = 'manifest') @cabler.db.get_children(key, group) end |
#has_key?(key, group = 'manifest') ⇒ Boolean
23 24 25 |
# File 'lib/popo/database.rb', line 23 def has_key?(key, group = 'manifest') @cabler.db.has_key?(key, group) end |
#migrate_database ⇒ Object
11 12 13 |
# File 'lib/popo/database.rb', line 11 def migrate_database @cabler.migrate end |