gitlab_support_readiness 1.0.105 → 1.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/support_readiness/redis.rb +9 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 382bb3f8e93489bd0981ac1314b30102c707b91b5298766c81a3b874873e154a
|
4
|
+
data.tar.gz: b26189e604d605fa8e38a2c121e4c9df4187d5d7f97e6a31ad853b75693dd7cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 531ea2fd66a168979466a8aa574472db8f2931c321f1681f8d8ccf102a71dfc741a2422be260da41b18dc577013bd7b56e040b1fa78534ef932697098a3bbc52
|
7
|
+
data.tar.gz: b3c111629ae14987e2ec82a5f6e64f9cd0f275569e1331879f63e47b593c4ac13a683d0691bc2a2c87f1ed6bf2c5eee478af0938dc9f073656cae9aaead368ee
|
@@ -18,11 +18,13 @@ module Readiness
|
|
18
18
|
# @param host [String] The hostname to use in Redis connections
|
19
19
|
# @param port [Integer] The port number to use in Redis connections
|
20
20
|
# @param password [String] The password to use in Redis connections
|
21
|
+
# @param username [String] The username to use in Redis connections
|
22
|
+
# @param ssl [Boolean] The SSL setting to use in Redis connections
|
21
23
|
# @example
|
22
24
|
# require 'support_readiness'
|
23
25
|
# redis = Readiness::Redis.new('domain.com', 6379, 'p@assw0rd!')
|
24
|
-
def initialize(host, port, password)
|
25
|
-
@connection = generate_client(host, port, password)
|
26
|
+
def initialize(host, port, password, username = nil, ssl = true)
|
27
|
+
@connection = generate_client(host, port, password, username, ssl)
|
26
28
|
end
|
27
29
|
|
28
30
|
##
|
@@ -33,11 +35,14 @@ module Readiness
|
|
33
35
|
# @param host [String] The hostname to use in Redis connections
|
34
36
|
# @param port [Integer] The port number to use in Redis connections
|
35
37
|
# @param password [String] The password to use in Redis connections
|
36
|
-
|
38
|
+
# @param username [String] The username to use in Redis connections
|
39
|
+
# @param ssl [Boolean] The SSL setting to use in Redis connections
|
40
|
+
def generate_client(host, port, password, username, ssl)
|
37
41
|
::Redis.new(host: host,
|
42
|
+
username: username,
|
38
43
|
port: port,
|
39
44
|
password: password,
|
40
|
-
ssl:
|
45
|
+
ssl: ssl)
|
41
46
|
end
|
42
47
|
|
43
48
|
##
|