summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)