We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329e8b1 commit 4cfcd05Copy full SHA for 4cfcd05
1 file changed
cogs/couchdb_doc_updater.rb
@@ -8,9 +8,17 @@ class CouchdbDocUpdater
8
include Celluloid
9
include Celluloid::Logger
10
11
+ def parse_credentials(creds)
12
+ if creds
13
+ u, p = creds.split(':', 2)
14
+
15
+ { :username => u, :password => p }
16
+ end
17
18
19
def initialize(path, uri, credentials)
20
@db = Analysand::Database.new(uri)
- @credentials = credentials
21
+ @credentials = parse_credentials(credentials)
22
@path = path
23
24
Dir.foreach(@path) do |filename|
0 commit comments