clowder-common-ruby 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clowder-common-ruby/rails_config.rb +16 -0
- data/lib/clowder-common-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb27069341b3726423c02088d23f56a4dcb659044ead344028da876a7dfb01a
|
4
|
+
data.tar.gz: d816b9eb821d8bb5a6841c804168dad27ff2627596a91fd5fc172d97ebc7178a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 591aaa8a7be6e2fbcc7119a74de0c94cb95d8dbce2555db27784d62d2245561824b77393d5b29028c43a6008165fa7eee8d572a5bc1adf017b0df776a36efa44
|
7
|
+
data.tar.gz: 1fcaf4ad4eefedd3cfbba5f00e2757a0d0c0a7fa47d3e0c53245d3ba50de8dea039363e72f72cceee30b68e5b3802e1681ca5ba24079e2739fbf3ba4027b76e8
|
@@ -16,6 +16,7 @@ module ClowderCommonRuby
|
|
16
16
|
database: configure_database(config),
|
17
17
|
prometheus_exporter_port: config&.metricsPort,
|
18
18
|
tls_ca_path: config.tlsCAPath,
|
19
|
+
unleash: configure_unleash(config),
|
19
20
|
web_port: config.webPort
|
20
21
|
}
|
21
22
|
end
|
@@ -155,6 +156,21 @@ module ClowderCommonRuby
|
|
155
156
|
}
|
156
157
|
end
|
157
158
|
|
159
|
+
# Unleash configuration hash
|
160
|
+
def configure_unleash(config)
|
161
|
+
return {} unless config.featureFlags
|
162
|
+
|
163
|
+
{
|
164
|
+
url: URI::HTTP.build(
|
165
|
+
host: config.featureFlags.hostname,
|
166
|
+
port: config.featureFlags.port,
|
167
|
+
protocol: config.featureFlags.scheme,
|
168
|
+
path: '/api'
|
169
|
+
).to_s,
|
170
|
+
token: config.featureFlags.clientAccessToken
|
171
|
+
}
|
172
|
+
end
|
173
|
+
|
158
174
|
# Gives location of database ssl certificate and makes sure it exists
|
159
175
|
def build_database_certificate(rdsca)
|
160
176
|
return unless rdsca.present?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clowder-common-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Red Hat Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a ruby interface for preparing Clowder variables.
|
14
14
|
email:
|