Module: Capcode

Defined in:
lib/capcode/base/couchrest.rb

Defined Under Namespace

Modules: Resource Classes: Base

Class Method Summary collapse

Class Method Details

.db_connect(dbfile, logfile) ⇒ Object



19
20
21
22
23
# File 'lib/capcode/base/couchrest.rb', line 19

def db_connect( dbfile, logfile )
  dbconfig = YAML::load(File.open(dbfile)).keys_to_sym
  @db = CouchRest.database!("#{dbconfig[:host]}/#{dbconfig[:database]}")
  # TODO: Add logger
end