From a5ce2d2563ccd56a37b281e549f44bf6f056f1d8 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 26 Jun 2014 11:37:20 +0200 Subject: minor: include username in save_url --- lib/tapicero/replication.rb | 5 +++-- 1 file 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) -- cgit v1.2.3