Sha256: 23ef0e8f20ea53fafb531521d0183dcb1ac11babc53d6684b1aa7964304fc7c6

Contents?: true

Size: 342 Bytes

Versions: 7

Compression:

Stored size: 342 Bytes

Contents

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

module Capcode
  Base = CouchFoo::Base
  module Resource
  end
  
  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

7 entries across 7 versions & 1 rubygems

Version Path
Capcode-0.6.2 lib/capcode/base/couchdb.rb
Capcode-0.4.0 lib/capcode/base/couchdb.rb
Capcode-0.5.0 lib/capcode/base/couchdb.rb
Capcode-0.2.0 lib/capcode/base/couchdb.rb
Capcode-0.6.1 lib/capcode/base/couchdb.rb
Capcode-0.3.0 lib/capcode/base/couchdb.rb
Capcode-0.6.0 lib/capcode/base/couchdb.rb