dry-stack 0.1.7 → 0.1.9
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 +16 -4
- 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: a5010fb1f68c965e46cfc971af6bc8cd51396b4ba0d536a941d05a8b1c57ad9e
|
4
|
+
data.tar.gz: c1969aae21a128f7f6258bb40de6da55870d5cf2e111102d3dcde9783a07c372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b7e31c2c065ddb71b39aac76abaf0cd669c862eeebf5f9b2504ea76722e67a9d7bc0f2e98a68120c3ac6ef66d5c46d8d843a1eafa3f1d37d6a6f7809f4d213
|
7
|
+
data.tar.gz: e4aa2c968ecec428dfe77fd5bb1813e2dd3330720da92b279b659062b141eb5ac41364f873f27f6e8591899429df7ef16f88483422b21a74f777eee6756ebf4b
|
data/lib/dry-stack/stack.rb
CHANGED
@@ -263,11 +263,12 @@ module Dry
|
|
263
263
|
end
|
264
264
|
|
265
265
|
service[:networks]&.map! do |network|
|
266
|
-
if network.is_a?
|
266
|
+
if network.is_a?(Hash)
|
267
267
|
if network.key?(:name)
|
268
|
-
n_name= network[:name].gsub('-','_').to_sym
|
269
|
-
|
270
|
-
|
268
|
+
n_name = network[:name].gsub('-','_').to_sym
|
269
|
+
if n_name != :default
|
270
|
+
(compose[:networks][n_name] ||= {}).merge! network
|
271
|
+
end
|
271
272
|
n_name
|
272
273
|
else
|
273
274
|
$stderr.puts ':name must be specified in network declaration'
|
@@ -331,6 +332,17 @@ module Dry
|
|
331
332
|
(@after_blocks ||=[]) << block
|
332
333
|
end
|
333
334
|
|
335
|
+
# TODO: latter
|
336
|
+
# def ServicesEach(names, &)
|
337
|
+
# def ServicesEach(names, opts, &)
|
338
|
+
def ServicesEach(&block)
|
339
|
+
After do
|
340
|
+
@services.values.each do |svc|
|
341
|
+
ServiceFunction.new(svc, &block) if block_given?
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
334
346
|
def PublishPorts(ports)
|
335
347
|
@publish_ports.merge! ports.to_h { |k, v| [k,[v].flatten] }
|
336
348
|
end
|
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.1.
|
4
|
+
version: 0.1.9
|
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-07-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|