rops 1.4.1 → 1.4.2

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: 9482ac2a5b0b165bed0d8a82c33d0f8cd3eac5d06bde17fba26f1e72e9262036
4
- data.tar.gz: fa219d5ba02c2b115f23126ee30125a4aa8d14378ec9d4d4b3c270d668d1aef3
3
+ metadata.gz: 677ba9efdca09746476e2a76a9db789b2d2447299c4db042abf8a6efb006daa8
4
+ data.tar.gz: 582cf70c64c5fb0b406493b6f0de6c1de3fc70c397f3e242c1698ce8c4d47a57
5
5
  SHA512:
6
- metadata.gz: 03bcd72090a33bc05516bad30d50fee4e8fafc01b39dddeecc24254206f6af76db6cac2903757885dbf729cd3d1c94b40c3c6b0eefe6128543962621a33d9ec9
7
- data.tar.gz: 5d3f78e6acca5abd7c8d36f12e2d42a41093c12b842ef898b80830b18ad9264923f62f42faa49a27ca0caebe791308396b68562f4a4ad5b2b8ceb7445058d296
6
+ metadata.gz: 4e08c7745eeb866456a74c87235393ee6236d25327c6cf28a4cbd48493f456fe34d8403f94563f813a6f307cebddc74b7410d9a710fbf3e148bfacffe90dac20
7
+ data.tar.gz: fe9ae57e5109c786b9dca9fc98bc17d9fcfd9c84c8ff8db04f5a04dba4b6c8c976c8f775d5f4f96b4c11e58d8d9ee62f17f87b437e9e14ae53f370fedd71c2a9
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (7.0.4)
16
+ activesupport (7.0.4.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
data/lib/config.rb CHANGED
@@ -11,8 +11,6 @@ class Config
11
11
  'registry' => 'docker.io/r360',
12
12
  'default_context' => 'staging',
13
13
  'production_context' => 'production',
14
- 'images' => [],
15
- 'contexts' => {},
16
14
  }.freeze
17
15
 
18
16
  attr_reader :repository, :registry, :default_branch, :default_context, :production_context, :ssh_host
@@ -34,6 +32,7 @@ class Config
34
32
  Image.new(name: name, repository: repository, dockerfile: dockerfile, registry: registry, commit: nil, tag: nil)
35
33
  end
36
34
 
35
+ contexts ||= {}
37
36
  @contexts = HashWithIndifferentAccess.new(contexts.compact)
38
37
  @contexts.each_value do |context|
39
38
  notify = context[:notify]
data/lib/image.rb CHANGED
@@ -64,7 +64,7 @@ class Image < Buildable
64
64
  if @remote_exists.nil?
65
65
  # this fails to parse the manifest of some images (built with Podman?), and gives warnings on others
66
66
  _stdout, stderr, status = Open3.capture3("DOCKER_CLI_EXPERIMENTAL=enabled #{Deployer.docker} manifest inspect #{remote_image}")
67
- if status.success? || stderr.include?('error parsing manifest blob')
67
+ if status.success? || stderr.match(/error\W+parsing manifest blob/i)
68
68
  @remote_exists = true
69
69
  else
70
70
  puts stderr if stderr.present? && !stderr.include?('manifest unknown') && !stderr.include?('no such manifest')
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Record360
2
2
  module Operations
3
- VERSION = '1.4.1'
3
+ VERSION = '1.4.2'
4
4
  end
5
5
  end
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli