Class: Popo::Database

Inherits:
Object
  • Object
show all
Defined in:
lib/popo/database.rb

Instance Method Summary collapse

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, options)
  @cabler = Palmade::Cableguy::Cabler.new(app_root, options)
end

Instance Method Details

#boot_databaseObject



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

Returns:

  • (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_databaseObject



11
12
13
# File 'lib/popo/database.rb', line 11

def migrate_database
  @cabler.migrate
end