diff options
author | Azul <azul@riseup.net> | 2014-06-26 11:37:20 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-06-26 11:37:20 +0200 |
commit | a5ce2d2563ccd56a37b281e549f44bf6f056f1d8 (patch) | |
tree | d61a3b68eadb94cbd9cdaf8284f84fccba8d2f46 /lib | |
parent | 17e6a95390ce5f5b62d4fc5cbe3a7fde87656bcc (diff) |
minor: include username in save_url
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tapicero/replication.rb | 5 |
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) |