diff options
author | jessib <jessib@riseup.net> | 2014-02-04 10:42:52 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2014-02-04 10:42:52 -0800 |
commit | 5b8034411f0394f90ff78f48d02db2bf8ef3e33d (patch) | |
tree | 3358f5e73b2d0dcdfe7ceb0b86ea7bb89e4dde85 /lib/tapicero.rb | |
parent | c7f376cdc02fe10c7e2a51c7d52475ab34451577 (diff) | |
parent | 7bb4ab417c0275fcca03abe338b3b81c17b17a6e (diff) |
Merge pull request #10 from azul/refactor/user-database
Refactor/user database
Diffstat (limited to 'lib/tapicero.rb')
-rw-r--r-- | lib/tapicero.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/tapicero.rb b/lib/tapicero.rb index 390257d..a098287 100644 --- a/lib/tapicero.rb +++ b/lib/tapicero.rb @@ -8,7 +8,11 @@ module Tapicero attr_accessor :config end - + # reraise exceptions instead of retrying + # used in tests + unless defined? RERAISE + RERAISE = false + end # # Load Config # this must come first, because CouchRest needs the connection @@ -24,12 +28,4 @@ module Tapicero puts "flags: #{FLAGS}" if FLAGS.any? end - # - # Load Tapicero Parts - # - require 'tapicero/user_database' - - def self.user_database(id) - UserDatabase.new(config.couch_host, config.options[:db_prefix] + id) - end end |