dry-stack 0.0.74 → 0.0.75
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 +3 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8221d44d262648628af5b10e205e899b1975f42f8858d53454e2eb71574ad790
|
4
|
+
data.tar.gz: 13ef00456e8f06f4d16f8bfd2f2910a23d6a85d98f677e01af6842a64a41474d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a8d2bc4f1d15191cec5a4958657f33f0ddfa850c1dfcf7e0bb7ffc7b4cd7306002852b89120a828a0a2392572fdf4d78f20cb9b27ebd39fae48917ed7988334
|
7
|
+
data.tar.gz: 6cbdad4504e7d3cb57344cd78e7057c4b88cef873f9b8187d0adec24b82947c8e1a367d8a62680543a45b07ff4cac0fba46447eb24f1c3571e5cfd6208366fc8
|
data/lib/dry-stack/stack.rb
CHANGED
@@ -52,7 +52,7 @@ module Dry
|
|
52
52
|
def command(cmd)= @service[:command] = cmd
|
53
53
|
def entrypoint(cmd)= @service[:entrypoint] = cmd
|
54
54
|
def deploy_label(str)= @service[:deploy][:labels] << str
|
55
|
-
def config(name, opts)= (@service[:configs] ||= []) << {source: name.to_s }.merge(opts)
|
55
|
+
def config(name = nil, opts)= (@service[:configs] ||= []) << {source: name.to_s }.merge(opts)
|
56
56
|
def logging(opts) = (@service[:logging] ||= {}).merge! opts
|
57
57
|
def user(user) = @service[:user] = user # "${UID}:${GID}", "www-data:www-data"
|
58
58
|
def network(names) = (@service[:networks] ||= []) << names
|
@@ -215,7 +215,8 @@ module Dry
|
|
215
215
|
|
216
216
|
service[:logging] ||= @logging[name.to_sym]
|
217
217
|
|
218
|
-
service[:configs]&.
|
218
|
+
service[:configs]&.each_with_index do |config, index|
|
219
|
+
config[:source] = "#{service_name}-config-#{index}" if config[:source].to_s.empty?
|
219
220
|
compose[:configs][config[:source].to_sym] ||= {}
|
220
221
|
compose[:configs][config[:source].to_sym].merge! config.except(:source, :target)
|
221
222
|
config.delete :file_content
|
data/lib/version.rb
CHANGED