dry-stack 0.1.21 → 0.1.22

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: 4bd5ab47b63266a1e1e54a8844b924e9455c72f320d68506ff174dafd7571b1b
4
- data.tar.gz: 623bee4d0cb0c75e33071ab68c2f6c74d999be29c273f996279116aab5869959
3
+ metadata.gz: bc36a4ac71daadd170966e113e368abcfbf9b48ffb6426e95930998d2be5dceb
4
+ data.tar.gz: d6eb7c94d22cfc9856220de70323dfebadab317f9406b949460e228f801f0e46
5
5
  SHA512:
6
- metadata.gz: 4955082fb8d0ff8571e146729aadee84e2719e2184c82cb6b8fc7d6e4a0752e9a2bea6b1d025452bdd7640915e4ed732f011ae87f489a286bdece84d0f54cb09
7
- data.tar.gz: a862676215c6897fc6fabe7dc496b03f0a01c7c20068e0956f148581b28b4de116d41094269ffb71a9e795072cba7a870582dea1dd6d96b01c9ded1249578f88
6
+ metadata.gz: 9cc038e43d49094fdf0b8b622992b35de088dd9412808eb5ad188ce7998fcb7869f42924a607516907bf67fa8fa9c2ec6ecedda016785ace90470bab9636bffd
7
+ data.tar.gz: dfd3c29783f27f0877a5ccefb6d72e01217610a1fa9e4d557dac2cced99a07fb21974d6253e273cd33f9c47d0a344eb8357b67a8f64c98eb78e532d28bee9357
@@ -35,8 +35,10 @@ Dry::CommandLine::COMMANDS[:swarm_deploy] = Class.new do
35
35
  # system " echo \"#{yaml.gsub("`", '\\\`')}\" | docker stack deploy -c - #{stack.name} --prune --resolve-image changed"
36
36
 
37
37
  # --prune --resolve-image changed
38
- exec_i "docker stack deploy -c - --with-registry-auth #{extra} #{stack.name}" , yaml
39
- system "docker config rm $(docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\")"
38
+ exec_i "docker stack deploy -c - --with-registry-auth #{extra} #{stack.name}", yaml
39
+ # Hide messages like:
40
+ # Error response from daemon: rpc error: code = InvalidArgument desc = config 'grafana_dashboards_yaml-206a34dc77dc394d78a207c7abde327d' is in use by the following service: grafana_grafana
41
+ system "docker config rm $(docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\") 2>&1 | grep -v \"is in use\""
40
42
 
41
43
  exec_i "docker config rm #{stack.name}_readme || echo 'failed to remove config #{stack.name}_readme'"
42
44
  puts "stack description: #{stack.description}"
@@ -277,7 +277,7 @@ module Dry
277
277
 
278
278
  service[:networks]&.each do |name, network|
279
279
  # raise "network name is invalid: #{name}" unless name.is_a? String, Symbol # https://bugs.ruby-lang.org/issues/20793
280
- raise "network name is invalid: #{name}" unless [String, Symbol].include?(name.class)
280
+ raise "network name is invalid: #{name}" unless name in String | Symbol
281
281
  next unless network.is_a? Hash
282
282
 
283
283
  (compose[:networks][name] ||= {}).merge! network.except(:aliases)
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.1.21'
3
+ VERSION = '0.1.22'
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.1.21
4
+ version: 0.1.22
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-10-10 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake