diff options
author | Azul <azul@riseup.net> | 2013-09-12 09:57:45 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-09-12 09:57:45 +0200 |
commit | 37f87300c9804bdad66d730b676715e242b9ca42 (patch) | |
tree | 7fa746846c2a127812d28d58cc5f0abd04cf180d /lib/tapicero/config.rb | |
parent | 929fcdea37f92f6b175482c6e0d1b8ff3229854f (diff) |
use CouchRest::Database#changes, store and retrieve seq
This commit bundles a few different changes:
* we now use the CouchRest::Database#changes stream instead of our own
* we store and read the last sequence number so on a restart we can start where we left
* we now have a UserDatabase class rather than the CouchDatabaseCreator. It also knows about it's name and we create an instance of it per database we want to create. It's also more flexible when the databases already exist.
Diffstat (limited to 'lib/tapicero/config.rb')
-rw-r--r-- | lib/tapicero/config.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tapicero/config.rb b/lib/tapicero/config.rb index 6e0fdfe..ad8076a 100644 --- a/lib/tapicero/config.rb +++ b/lib/tapicero/config.rb @@ -8,6 +8,8 @@ module Tapicero attr_accessor :db_prefix attr_accessor :couch_connection attr_accessor :security + attr_accessor :seq_file + attr_accessor :log_file def self.load(base_dir, *configs) configs.each do |file_path| |