renuo-cli 4.18.0 → 4.18.1
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/commands/check_deploio_status.rb +8 -6
- data/lib/renuo/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bae3114f37cfe01f2826e83aab108fe1c9b33a29da840214d768e9f18f418a1b
|
|
4
|
+
data.tar.gz: 83d9d199de7af9049419c2784c226a87eb1c749727982bdb31a4c237eb65355b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da97bacdee6165fb3f3702d41229cb00609a09a5fff479213bb3d8d31a21ceeaf9460454bb57385cc7f6d60d8d61a0e427fddb3c3fbe31fb8245bddd96e18a77
|
|
7
|
+
data.tar.gz: 2d8a90db015c046e86e4f0f1937d45d02c69b1e9d3d6829deb8128e65114bb5055af3778a4e441f7f75f0b7b0794f1aea7a6a9663a1607b5a7d15bbcf339716a
|
|
@@ -52,7 +52,7 @@ class Renuo::Cli::Commands::CheckDeploioStatus
|
|
|
52
52
|
command = "nctl logs build -a #{@app} -p #{@project} -l 5000 --no-labels"
|
|
53
53
|
stdout, stderr, status = Open3.capture3 command
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
puts "error fetching build logs: #{stderr}" unless status.success?
|
|
56
56
|
stdout
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -81,20 +81,22 @@ class Renuo::Cli::Commands::CheckDeploioStatus
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def succeeded?(status, type) # rubocop:disable Metrics/MethodLength
|
|
84
|
+
time = "[#{Time.now.utc.iso8601}]"
|
|
85
|
+
|
|
84
86
|
case status
|
|
85
87
|
when "available", "success"
|
|
86
|
-
puts "#{type} succeeded"
|
|
88
|
+
puts "#{time} #{type} succeeded"
|
|
87
89
|
true
|
|
88
90
|
when "superseded"
|
|
89
|
-
puts "release was superseded"
|
|
91
|
+
puts "#{time} release was superseded"
|
|
90
92
|
true
|
|
91
93
|
when "paused"
|
|
92
|
-
abort "app is paused"
|
|
94
|
+
abort "#{time} app is paused"
|
|
93
95
|
when "error", "failed", "failure"
|
|
94
96
|
puts fetch_build_logs
|
|
95
|
-
abort "#{type} failed"
|
|
97
|
+
abort "#{time} #{type} failed"
|
|
96
98
|
else
|
|
97
|
-
puts "#{type} status is #{status}, waiting..."
|
|
99
|
+
puts "#{time} #{type} status is #{status}, waiting..."
|
|
98
100
|
instance_variable_set :"@#{type}", nil
|
|
99
101
|
end
|
|
100
102
|
end
|
data/lib/renuo/cli/version.rb
CHANGED