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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2751a52ad861d68242e6e0619593f91d5e4cece18ab73ae17705f13446f16bd6
4
- data.tar.gz: 0fe4eebae5a38be6ccdc6f0a335b848e7815a29adc24ca423cd936d9c1e07a48
3
+ metadata.gz: fe8c8f966927fb90fcccff5261cd1e29f5c410da2d6f45b9c45a9e7099939131
4
+ data.tar.gz: 93a03c8f69039c7e890f5a3e17dcf6b87b759668adc8969aed65fb14c0da7f65
5
5
  SHA512:
6
- metadata.gz: 7fc4807f8695889254d73124d7de7c89fc4a98288f522a2b5bfbebb9fba21edb227b0c4456f42430700fb83d9ee1e69f9288a8ad11a908940b3a053250dbb621
7
- data.tar.gz: dd4b79b68e7fdd76c648c2baa8ec6f5172ecb3387825d8aea3cf72c3e25d76b0b5488148968d793b126577ede77de27af9a7446a919e44577da251ab91fef381
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
- REVISION = `git rev-parse HEAD`.strip
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 #{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") == REVISION
44
+ build.dig("spec", "forProvider", "sourceConfig", "git", "revision") == @revision
42
45
  end
43
46
  end
44
47
 
@@ -3,7 +3,7 @@
3
3
  # :nocov:
4
4
  module Renuo
5
5
  module Cli
6
- VERSION = "4.10.1"
6
+ VERSION = "4.10.2"
7
7
  NAME = "renuo-cli"
8
8
  end
9
9
  end
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.action do
321
- CheckDeploioStatus.new.run
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.1
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-01-31 00:00:00.000000000 Z
10
+ date: 2025-02-04 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport