clowder-common-ruby 0.3.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/schema.json +4 -0
- data/config/initializers/0_clowder_rails.rb +1 -1
- data/lib/clowder-common-ruby/types.rb +1 -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: 9275aa81208f6167d8570ce9e8ac478722678a24f7b26d00d8286d55a55c9da5
|
4
|
+
data.tar.gz: cb5b81bc3bb916c7ad083cceeda1dbe1f56f190e592da2a06e1e24d1f02ec234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 188a443985932989d4ac6566876742727156948ac33113f79436978d6f5547dee56b3e0c9b4c97b5aea4c26a21e6a1b59d37154cf969fd2458ebef6d9db39abf
|
7
|
+
data.tar.gz: fa4ddb7cf0c5696607bc0896ea9922a2702367f33d13e5d95a04ff0df6710ae156bfa2c49f00462cf130d4d8bff79571940a738e512897b1e3adf0d4866a939d
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Based on schema.json, the corresponding Ruby Classes are generated in types.rb.
|
|
8
8
|
Usage
|
9
9
|
-----
|
10
10
|
|
11
|
-
The `clowder` library provides basic values like expected
|
11
|
+
The `clowder` library provides basic values like expected public port, metrics port,
|
12
12
|
database credentials etc.
|
13
13
|
|
14
14
|
Usage:
|
@@ -21,12 +21,12 @@ require 'clowder-common-ruby'
|
|
21
21
|
|
22
22
|
if ClowderCommonRuby::Config.clowder_enabled?
|
23
23
|
config = ClowderCommonRuby::Config.load
|
24
|
-
options["
|
24
|
+
options["publicPort"] = config.publicPort
|
25
25
|
options["databaseHostname"] = config.database.hostname
|
26
26
|
options["kafkaTopics"] = config.kafka_topics
|
27
27
|
# ...
|
28
28
|
else
|
29
|
-
options["
|
29
|
+
options["publicPort"] = 3000
|
30
30
|
options["databaseHostname"] = ENV['DATABASE_HOST']
|
31
31
|
end
|
32
32
|
end
|
data/bin/schema.json
CHANGED
@@ -436,6 +436,10 @@
|
|
436
436
|
"password": {
|
437
437
|
"description": "Defines the password for the In Memory DB server configuration.",
|
438
438
|
"type": "string"
|
439
|
+
},
|
440
|
+
"sslMode": {
|
441
|
+
"description": "Defines the sslMode used by the In Memory DB server coniguration",
|
442
|
+
"type": "boolean"
|
439
443
|
}
|
440
444
|
},
|
441
445
|
"required": [
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'clowder-common-ruby/rails_config'
|
2
2
|
|
3
3
|
if ClowderCommonRuby::Config.clowder_enabled? && defined?(Settings)
|
4
|
-
config = ClowderCommonRuby::RailsConfig.to_h
|
4
|
+
config = ClowderCommonRuby::RailsConfig.to_h.deep_stringify_keys
|
5
5
|
|
6
6
|
if config.dig('tls_ca_path')
|
7
7
|
ENV['SSL_CERT_FILE'] = Rails.root.join('tmp', 'cacert.crt')
|
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.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a ruby interface for preparing Clowder variables.
|
14
14
|
email:
|