rops 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/deployer.rb +1 -1
  4. data/lib/image.rb +3 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 251592c08814310a14cc0530cb79be6d18510b28393211810690495c559c4632
4
- data.tar.gz: 0a4aee08e4858051f0f555b1ca322a661673231ccd0da4c6258f604ed87eb5d7
3
+ metadata.gz: 0b842710deb5849c4ee8342b766505a55c8e6778db4afbb79c6fa20768d6e43c
4
+ data.tar.gz: fe1df084466ab6019f9f85ba958ecda306f44757ff505ede0b8867f639e86706
5
5
  SHA512:
6
- metadata.gz: ff89c2f68f4a214da8d451f95719c512f816913a5bc40cc5c8e04e1440d99a0f9d53f7dc70228637dc61ebbc311eb7f8987b4e0f86deb4abc10954d1a7c5de79
7
- data.tar.gz: de710e909b10d21e70a6f7386ee79d94311cd84a7cfe0f0d67b966cb92251463911890dd1ae0ea2ac7cc2b4d57c62e9ddd92badc29e9e0571a6acbe356a822ab
6
+ metadata.gz: 5039b8251bb501bd3ac8c4006ae82f23d998e2dc57c6a7c0e579c55d62140a2e9f517a3a3c61d373b30c5ed3211c90f035d86b91fca5d65fd765d883095d2ba0
7
+ data.tar.gz: 88fc34f86355c4c2917c916712ca1e3bbd7077c736e66a56081b4b9517d6ef646f022143732374d1fe1540110935f7fd8e7e6ff79f3c01d82dfc9d5ca57fed7f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rops (1.0.5)
4
+ rops (1.0.6)
5
5
  activesupport (~> 6.1.4)
6
6
  dry-cli (~> 0.7.0)
7
7
  git (~> 1.9.1)
data/lib/deployer.rb CHANGED
@@ -68,7 +68,7 @@ class Deployer
68
68
  end
69
69
 
70
70
  statuses, stderr, success = kubectl(context, cmd)
71
- unless success || stderr.match(/not found/)
71
+ unless (success || stderr.match(/not found/)) && statuses.present?
72
72
  puts stderr if stderr.present?
73
73
  return nil
74
74
  end
data/lib/image.rb CHANGED
@@ -54,7 +54,9 @@ class Image
54
54
  end
55
55
 
56
56
  def local_exists?
57
- system("#{Deployer.docker} image exists #{local_image}")
57
+ if @local_exists.nil?
58
+ @local_exists = system("#{Deployer.docker} image exists #{local_image}")
59
+ end
58
60
  end
59
61
 
60
62
  def remote_image
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli