dry-stack 0.1.34 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee883b409e0150be2d5932a2d9bebcbe1f0c98d0f087b276c576b6c5b2499e17
4
- data.tar.gz: 4b016d1f6259a1d13007621e538eedc621aeedfdd62f58d6b4c8606454e4ca3f
3
+ metadata.gz: 2a0306fe8ac4ae7046d548c831cced66d847d786e8bc7632ba11b6579ee345a1
4
+ data.tar.gz: dd7ca49925a6b04851127ce60c18a5fc45994dc0083be934840d21bdf2c12c5b
5
5
  SHA512:
6
- metadata.gz: 7fa837735a22c3e00bc112b1e51f30a1c703fb8def49609e18b5a05abfae128b264adb400693d2b4c1c5efdbb96254c5a0b00ddddb3efb80c54409d5d3ae8d4c
7
- data.tar.gz: 9149f5121c7b258bf2419a8a863c590919b7cb541954d91e39bff64bdec45a8065ac673ed7fdc2f7ab97622703e3056b369d8cdd4cb06136e306792c9d482aa8
6
+ metadata.gz: 6fbe401e87f54d30efa0f3d71df3af8b5a8dd88d2017208179b671950d1822c39250c1c310d976f6b60ce65e9bb22ad29426ed79e09c28e5d1207f359a44b9e9
7
+ data.tar.gz: 9b5077b4bef27b028753e334a7cc3b8ad580323962656cefeb7e52c3afccec7adec21ea7deff577088193845d4a02941542dcf51f24f0be1a8590cbe5a4ae7c1
@@ -43,7 +43,10 @@ Dry::CommandLine::COMMANDS[:swarm_deploy] = Class.new do
43
43
  exec_i "docker --context #{name} stack deploy -c - --with-registry-auth #{extra} #{stack.name}", yaml
44
44
  # Hide messages like:
45
45
  # Error response from daemon: rpc error: code = InvalidArgument desc = config 'grafana_dashboards_yaml-206a34dc77dc394d78a207c7abde327d' is in use by the following service: grafana_grafana
46
- system "docker --context #{name} config rm $(docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\") 2>&1 | grep -v \"is in use\""
46
+ conf_list = `docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\"`
47
+ unless conf_list.strip.empty?
48
+ system "docker --context #{name} config rm $(docker config ls --filter label=com.docker.stack.namespace=#{stack.name} --format \"{{.ID}}\") 2>&1 | grep -v \"is in use\""
49
+ end
47
50
 
48
51
  exec_i "docker --context #{name} config rm #{stack.name}_readme || echo 'failed to remove config #{stack.name}_readme'"
49
52
  puts "stack description: #{stack.description}"
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.1.34'
3
+ VERSION = '0.1.35'
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.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-20 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake