summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-06-26 11:37:20 +0200
committerAzul <azul@riseup.net>2014-06-26 11:37:20 +0200
commita5ce2d2563ccd56a37b281e549f44bf6f056f1d8 (patch)
treed61a3b68eadb94cbd9cdaf8284f84fccba8d2f46
parent17e6a95390ce5f5b62d4fc5cbe3a7fde87656bcc (diff)
minor: include username in save_url
-rw-r--r--lib/tapicero/replication.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tapicero/replication.rb b/lib/tapicero/replication.rb
index c8253a1..1a2db22 100644
--- a/lib/tapicero/replication.rb
+++ b/lib/tapicero/replication.rb
@@ -13,11 +13,12 @@ module Tapicero
RemoteEndpoint = Struct.new(:remote, :credentials) do
def key; domain; end
def url; "http://#{creds}@#{domain}:#{port}/#{name}"; end
- def save_url; "http://...@#{domain}:#{port}/#{name}"; end
+ def save_url; "http://#{username}@#{domain}:#{port}/#{name}"; end
def domain; remote[:internal_domain]; end
def port; remote[:couch_port]; end
def name; remote[:name]; end
- def creds; credentials[:username] + ':' + credentials[:password]; end
+ def creds; username + ':' + credentials[:password]; end
+ def username; credentials[:username]; end
end
def initialize(source, target)