dry-stack 0.0.73 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry-stack/stack.rb +9 -5
- data/lib/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: 1c09ec9f2621d4f04f4aa4578c6a523a88830721d10d3ec5582f92678fc728cf
|
4
|
+
data.tar.gz: 9d8871217ff3e0dba94346c916a6f2764ed261c3fbeaae1df884e767bdd6b13c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86f2a7e6d7ef991952b4b3689ad7b112b27c759d181e357074439dab9f6946d2def17b0c9e95968f47ccb0377cfab7beedb0771b290e1c0855b276d6d138469b
|
7
|
+
data.tar.gz: 6d3822249f9d87632da48600ced3cbaaabf317d0fe075a3ba3f7ec48163b1830811255a58a3d82fa423575a1a805c3d2a7eb584c7dc680118ae89105fb319d7a
|
data/lib/dry-stack/stack.rb
CHANGED
@@ -216,10 +216,11 @@ module Dry
|
|
216
216
|
service[:logging] ||= @logging[name.to_sym]
|
217
217
|
|
218
218
|
service[:configs]&.each do |config|
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
219
|
+
compose[:configs][config[:source].to_sym] ||= {}
|
220
|
+
compose[:configs][config[:source].to_sym].merge! config.except(:source, :target)
|
221
|
+
config.delete :file_content
|
222
|
+
config.delete :file
|
223
|
+
config.delete :name
|
223
224
|
end
|
224
225
|
end
|
225
226
|
|
@@ -229,6 +230,10 @@ module Dry
|
|
229
230
|
fname = "./#{@name}.config.#{name}"
|
230
231
|
File.write fname, config[:file_content]
|
231
232
|
{name: "#{name}-#{md5}", file: fname}.merge config.except(:file_content)
|
233
|
+
elsif config[:file]
|
234
|
+
body = File.read config[:file] rescue ''
|
235
|
+
md5 = Digest::MD5.hexdigest body
|
236
|
+
{name: "#{name}-#{md5}", file: fname}.merge config
|
232
237
|
else
|
233
238
|
config
|
234
239
|
end
|
@@ -321,7 +326,6 @@ module Dry
|
|
321
326
|
else
|
322
327
|
@logging.merge! expand_hash(opts)
|
323
328
|
end
|
324
|
-
|
325
329
|
end
|
326
330
|
|
327
331
|
def Volume(name, opts = {})
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artyom B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|