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