renuo-cli 4.10.1 → 4.10.2
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 +4 -4
- data/lib/renuo/cli/app/check_deploio_status.rb +6 -3
- data/lib/renuo/cli/version.rb +1 -1
- data/lib/renuo/cli.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe8c8f966927fb90fcccff5261cd1e29f5c410da2d6f45b9c45a9e7099939131
|
4
|
+
data.tar.gz: 93a03c8f69039c7e890f5a3e17dcf6b87b759668adc8969aed65fb14c0da7f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31759c696baf26fb2ffffc18013e0bec5e45c2697be678d01ce1d4cb3878e51e4935be7cf86a553ff09de97af100e0013cf222a8349811c0575bbb854dd9a56a
|
7
|
+
data.tar.gz: 710ee8ba8f679adc9e6cd4d43a38774d91e935608a855620fc81c53530498546920e704bd8f7900d618141163562c6ea96295704a86ec27f91e7d57788682860
|
@@ -10,10 +10,13 @@ class CheckDeploioStatus
|
|
10
10
|
|
11
11
|
APP_NAME = ENV.fetch "DEPLOIO_APP_NAME", nil
|
12
12
|
PROJECT = ENV.fetch "DEPLOIO_PROJECT", nil
|
13
|
-
|
13
|
+
|
14
|
+
def initialize(opts)
|
15
|
+
@revision = opts.git_revision || `git rev-parse HEAD`.strip
|
16
|
+
end
|
14
17
|
|
15
18
|
def run
|
16
|
-
puts "(1/2) Checking build status for revision #{
|
19
|
+
puts "(1/2) Checking build status for revision #{@revision}..."
|
17
20
|
poll "build"
|
18
21
|
abort "build check timed out after #{TIMEOUT_IN_SECONDS} seconds" if build.nil?
|
19
22
|
|
@@ -38,7 +41,7 @@ class CheckDeploioStatus
|
|
38
41
|
|
39
42
|
def build
|
40
43
|
@build ||= fetch("builds").find do |build|
|
41
|
-
build.dig("spec", "forProvider", "sourceConfig", "git", "revision") ==
|
44
|
+
build.dig("spec", "forProvider", "sourceConfig", "git", "revision") == @revision
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
data/lib/renuo/cli/version.rb
CHANGED
data/lib/renuo/cli.rb
CHANGED
@@ -317,8 +317,9 @@ module Renuo
|
|
317
317
|
command "check-deploio-status" do |c|
|
318
318
|
c.syntax = "renuo check-deploio-status"
|
319
319
|
c.summary = "Checks the build and release status of the deployment."
|
320
|
-
c.
|
321
|
-
|
320
|
+
c.option "--git-revision <revision>", String, "The git revision to check"
|
321
|
+
c.action do |_, opts|
|
322
|
+
CheckDeploioStatus.new(opts).run
|
322
323
|
end
|
323
324
|
end
|
324
325
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renuo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.10.
|
4
|
+
version: 4.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renuo AG
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|