diff options
author | Varac <varac@leap.se> | 2017-03-15 18:25:41 +0000 |
---|---|---|
committer | Varac <varac@leap.se> | 2017-03-15 18:25:41 +0000 |
commit | 8b9cf218766e0075102db09562293835ab73f432 (patch) | |
tree | 67ef14ec1748ce68bc9751d2fa0d2a1bf9baf7f1 /lib/leap_cli/macros/stunnel.rb | |
parent | e4a2d54b3571a8f4ce46485db762acbc4b919d84 (diff) | |
parent | 8c1c4c102936dd779c74d615763e7adef7033ec1 (diff) |
Merge branch '8144_remove_haproxy' into 'master'
8144 remove haproxy
Closes #8144
See merge request !70
Diffstat (limited to 'lib/leap_cli/macros/stunnel.rb')
-rw-r--r-- | lib/leap_cli/macros/stunnel.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/leap_cli/macros/stunnel.rb b/lib/leap_cli/macros/stunnel.rb index 821bda38..59a38fad 100644 --- a/lib/leap_cli/macros/stunnel.rb +++ b/lib/leap_cli/macros/stunnel.rb @@ -87,6 +87,18 @@ module LeapCli } end + # + # what it the port of the couchdb we should connect to. + # host will always be localhost. + # + def couchdb_port + if services.include?('couchdb') + couch.port + else + stunnel.clients.couch_client.values.first.accept_port + end + end + private # @@ -103,4 +115,4 @@ module LeapCli end end -end
\ No newline at end of file +end |