Sha256: 4e7a7f4195be9ae2ad5272835708a03642dbb6a39d5384ffc62a8b0b080202f5

Contents?: true

Size: 346 Bytes

Versions: 8

Compression:

Stored size: 346 Bytes

Contents

require 'rubygems'
require 'couch_foo'
require 'yaml'
require 'logger'

module Capcode
  module Resource
  end
  
  Base = CouchFoo::Base
  
  class << self
    def db_connect( dbfile, logfile )
      dbconfig = YAML::load(File.open(dbfile)).keys_to_sym
      Base.set_database(dbconfig)
      Base.logger = Logger.new(logfile)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
Capcode-0.8.7 lib/capcode/base/couchdb.rb
Capcode-0.8.6 lib/capcode/base/couchdb.rb
Capcode-0.8.5 lib/capcode/base/couchdb.rb
Capcode-0.8.4 lib/capcode/base/couchdb.rb
Capcode-0.7.1 lib/capcode/base/couchdb.rb
Capcode-0.8.0 lib/capcode/base/couchdb.rb
Capcode-0.8.1 lib/capcode/base/couchdb.rb
Capcode-0.8.2 lib/capcode/base/couchdb.rb