Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Storage#replace_engine_configuration

  • Loading branch information...
commit caa6e9f22b28421b23ac8fe8228fb504b918f9bc 1 parent 9212149
@jmettraux authored
Showing with 2 additions and 10 deletions.
  1. +1 −10 lib/ruote/couch/storage.rb
  2. +1 −0  test/functional_connection.rb
View
11 lib/ruote/couch/storage.rb
@@ -80,7 +80,7 @@ def initialize(*args)
@dbs['workitems'] = WorkitemDatabase.new(
@host, @port, 'workitems', "#{@prefix}ruote_workitems", @options)
- put_configuration
+ replace_engine_configuration(@options)
@poll_threads = {}
@@ -256,15 +256,6 @@ def get_schedules(delta, now)
protected
- def put_configuration
-
- return if get('configurations', 'engine')
-
- conf = { '_id' => 'engine', 'type' => 'configurations' }.merge!(@options)
-
- put(conf)
- end
-
def ensure_poll_thread_is_running(doctype, &block)
if t = @poll_threads[doctype]
View
1  test/functional_connection.rb
@@ -9,6 +9,7 @@
require 'rufus-json'
Rufus::Json.detect_backend
+
unless $http_lib_loaded
begin
if ARGV.include?('--patron')
Please sign in to comment.
Something went wrong with that request. Please try again.