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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37226df6d0e55d14a71d2d58fe9bb9c2cbff43fc7f91e81f23d33bb9a1deb37f
4
- data.tar.gz: 18e0f8893cb5cc8b26fe7ed0ae23d0b60c91b93c4fa06799d333ac553ee3e9f1
3
+ metadata.gz: 1c09ec9f2621d4f04f4aa4578c6a523a88830721d10d3ec5582f92678fc728cf
4
+ data.tar.gz: 9d8871217ff3e0dba94346c916a6f2764ed261c3fbeaae1df884e767bdd6b13c
5
5
  SHA512:
6
- metadata.gz: 713ede878b90a841206f6ecc51dc6468de0168a6b401f5c3b9d9f054329b0f190cd7c6e9730befb21a631a08353dd97590ce25107c2b7ec7da0e92468bc4b6a2
7
- data.tar.gz: 0e61ba0b8a116d1d386e1b032f08f85fa4dd73acc1e3e1b46b6529a126480ba0c24255e55083df2be204348d0887cd51d048b934db8dd10bc4c157e74e7fde3f
6
+ metadata.gz: 86f2a7e6d7ef991952b4b3689ad7b112b27c759d181e357074439dab9f6946d2def17b0c9e95968f47ccb0377cfab7beedb0771b290e1c0855b276d6d138469b
7
+ data.tar.gz: 6d3822249f9d87632da48600ced3cbaaabf317d0fe075a3ba3f7ec48163b1830811255a58a3d82fa423575a1a805c3d2a7eb584c7dc680118ae89105fb319d7a
@@ -216,10 +216,11 @@ module Dry
216
216
  service[:logging] ||= @logging[name.to_sym]
217
217
 
218
218
  service[:configs]&.each do |config|
219
- if config[:file_content]
220
- compose[:configs][config[:source].to_sym] = {file_content: config[:file_content]}
221
- config.delete :file_content
222
- end
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
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.0.73'
3
+ VERSION = '0.0.74'
4
4
  end
5
5
  end
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.73
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-04 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake