rops 1.4.1 → 1.4.3

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: 926388756efcd2dc90f1ea69ea4f277c20ae3ce4f6144c1e924b4ea3bb9aa80b
4
+ data.tar.gz: 2cb4463b96572808649bad097306fdbf4378355577e73e915a472a8850e4a93c
5
5
  SHA512:
6
- metadata.gz: 03bcd72090a33bc05516bad30d50fee4e8fafc01b39dddeecc24254206f6af76db6cac2903757885dbf729cd3d1c94b40c3c6b0eefe6128543962621a33d9ec9
7
- data.tar.gz: 5d3f78e6acca5abd7c8d36f12e2d42a41093c12b842ef898b80830b18ad9264923f62f42faa49a27ca0caebe791308396b68562f4a4ad5b2b8ceb7445058d296
6
+ metadata.gz: 286a04a4439608acf261a1c272b1dd5b034b275d35c1bc079260549b02687a6a049f58b5db6003ea80cc2f87db0aff09cb4e7b0b7f420febd7e687e9c1428dc1
7
+ data.tar.gz: 39c0dcc66bf41a46e0a7052cbb9e2ae91926401215f6b682ef91b844c0614dcc0d01c41043e4b7fcc3c45d8577d8004a3d2615f0f06b6aac90696d8dc5155901
data/Gemfile.lock CHANGED
@@ -1,39 +1,39 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rops (1.4.1)
4
+ rops (1.4.3)
5
5
  activesupport (~> 7.0.3)
6
6
  dry-cli (~> 0.7.0)
7
7
  git (>= 1.9.1, < 1.14.0)
8
8
  hashdiff (~> 1.0.1)
9
9
  liquid (~> 5.4.0)
10
- net-ssh (~> 6.1.0)
10
+ net-ssh (~> 7.0.1)
11
11
  ptools (~> 1.4.2)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (7.0.4)
16
+ activesupport (7.0.4.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
20
20
  tzinfo (~> 2.0)
21
21
  addressable (2.8.1)
22
22
  public_suffix (>= 2.0.2, < 6.0)
23
- concurrent-ruby (1.1.10)
23
+ concurrent-ruby (1.2.2)
24
24
  crack (0.4.5)
25
25
  rexml
26
26
  diff-lcs (1.5.0)
27
27
  dry-cli (0.7.0)
28
- git (1.13.0)
28
+ git (1.13.2)
29
29
  addressable (~> 2.8)
30
30
  rchardet (~> 1.8)
31
31
  hashdiff (1.0.1)
32
32
  i18n (1.12.0)
33
33
  concurrent-ruby (~> 1.0)
34
34
  liquid (5.4.0)
35
- minitest (5.17.0)
36
- net-ssh (6.1.0)
35
+ minitest (5.18.0)
36
+ net-ssh (7.0.1)
37
37
  ptools (1.4.3)
38
38
  public_suffix (5.0.1)
39
39
  rchardet (1.8.0)
@@ -42,16 +42,16 @@ GEM
42
42
  rspec-core (~> 3.12.0)
43
43
  rspec-expectations (~> 3.12.0)
44
44
  rspec-mocks (~> 3.12.0)
45
- rspec-core (3.12.0)
45
+ rspec-core (3.12.1)
46
46
  rspec-support (~> 3.12.0)
47
- rspec-expectations (3.12.0)
47
+ rspec-expectations (3.12.2)
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
49
  rspec-support (~> 3.12.0)
50
- rspec-mocks (3.12.1)
50
+ rspec-mocks (3.12.3)
51
51
  diff-lcs (>= 1.2.0, < 2.0)
52
52
  rspec-support (~> 3.12.0)
53
53
  rspec-support (3.12.0)
54
- tzinfo (2.0.5)
54
+ tzinfo (2.0.6)
55
55
  concurrent-ruby (~> 1.0)
56
56
  webmock (3.18.1)
57
57
  addressable (>= 2.8.0)
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.3'
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.3
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-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 6.1.0
95
+ version: 7.0.1
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 6.1.0
102
+ version: 7.0.1
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: liquid
105
105
  requirement: !ruby/object:Gem::Requirement