orchestration 0.5.11 → 0.5.12
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/README.md +1 -1
- data/lib/orchestration/services/database/configuration.rb +11 -17
- data/lib/orchestration/templates/puma.rb.erb +1 -1
- data/lib/orchestration/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: 80872dc0b6d1fe6a0e4223915a047c9ed6b3461540b64842613b4d8a0ba72f3d
|
|
4
|
+
data.tar.gz: b33f4a5c305fd48f952a92a4f98748d1dae64eae62d5b222b4831f80cc2dbe9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d83d6166ce64feb661d3952431d4b26569c96568308008f0070960343cb7959847ae5217cf30e780fa0228387cdb4e4404091ac6934996492cda355eec9b932
|
|
7
|
+
data.tar.gz: 6c78278a30cd2489e229900560c583731e29e4f88f4309530d6ff09095d59e426d6a500896d20dadcb03eca8dfdd3786b0c68d43c7b675209d7cdf4f374acbf1
|
data/README.md
CHANGED
|
@@ -82,37 +82,31 @@ module Orchestration
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
def host
|
|
85
|
-
|
|
85
|
+
chained_config('host') || super
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def port
|
|
89
89
|
return nil if sqlite?
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
chained_config('port') || super
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
def username
|
|
95
|
-
(
|
|
96
|
-
url_config['username'] ||
|
|
97
|
-
file_config['username'] ||
|
|
98
|
-
(adapter && adapter.credentials['username'])
|
|
99
|
-
)
|
|
95
|
+
chained_config('username') || (adapter && adapter.credentials['username'])
|
|
100
96
|
end
|
|
101
97
|
|
|
102
98
|
def password
|
|
103
|
-
(
|
|
104
|
-
url_config['password'] ||
|
|
105
|
-
file_config['password'] ||
|
|
106
|
-
(adapter && adapter.credentials['password'])
|
|
107
|
-
)
|
|
99
|
+
chained_config('password') || (adapter && adapter.credentials['password'])
|
|
108
100
|
end
|
|
109
101
|
|
|
110
102
|
def database
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
chained_config('database') || (adapter && adapter.credentials['database'])
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def chained_config(key)
|
|
107
|
+
return url_config[key] || file_config[key] if @env.environment == 'test'
|
|
108
|
+
|
|
109
|
+
file_config[key] || url_config[key]
|
|
116
110
|
end
|
|
117
111
|
|
|
118
112
|
def adapter_by_name(name)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orchestration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bob Farrell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01
|
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: database_url
|