orchestrator_client 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/orchestrator_client/config.rb +2 -2
- data/lib/orchestrator_client/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: 9c46d477009b481d6af625e9e6f44d22b2e2db4da6ba034e189d6280d10884a3
|
4
|
+
data.tar.gz: 37c28f11927ff38817e29fa1e8e49a72f0d8f4773fb89e3d13060e58d5893083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879ad490b425569a2383eb67eae24c0dc452a10d0d1221fc2fcd652dbcedf8ef788e6a6980d23a04cd7bf5a6142c8be452ac4e76001047866fce98a6b3be1724
|
7
|
+
data.tar.gz: 28697f8333ecc1ddda85df3d79bf915ad5e11fbdb2eccb8a9a60314ae296d74004627c6e076d81e45ddec91ade8a7e608a5e0f79012ac7f147ff09a4323264f1
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ require 'orchestrator_client'
|
|
40
40
|
# Requires at least a server name and path to the CA certificate
|
41
41
|
|
42
42
|
client = OrchestratorClient.new({
|
43
|
-
'service-url' => 'https://orchestrator.example.lan:8143
|
43
|
+
'service-url' => 'https://orchestrator.example.lan:8143',
|
44
44
|
'cacert' => '/path/to/cert'
|
45
45
|
})
|
46
46
|
|
@@ -44,13 +44,13 @@ class OrchestratorClient::Config
|
|
44
44
|
def load_config
|
45
45
|
config = defaults
|
46
46
|
if @load_files
|
47
|
-
if File.
|
47
|
+
if File.exist?(global_conf) && File.readable?(global_conf)
|
48
48
|
config = config.merge(load_file(global_conf))
|
49
49
|
end
|
50
50
|
|
51
51
|
if @overrides['config-file']
|
52
52
|
config = config.merge(load_file(@overrides['config-file']))
|
53
|
-
elsif File.
|
53
|
+
elsif File.exist?(user_conf) && File.readable?(user_conf)
|
54
54
|
config = config.merge(load_file(user_conf))
|
55
55
|
end
|
56
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestrator_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|