capistrano_multiconfig_parallel 0.21.5 → 0.21.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 243c50e263028d3c6b611e0f53f21c76166dacda
|
4
|
+
data.tar.gz: 43fd764e806b2d26a4ea90430f973a36eca1d24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c271ca088192b718525c8fb0af6545c951f5ab4412b7749b476efd891098fb696b9dc002c0debcd3ef8b94808ad9aafb7ef4fa8a771e06fe98f302271da1d011
|
7
|
+
data.tar.gz: aaa5ab2e3217d90e8f355e5dad260c34d1c835f2336d774f7c9a5a8c70b70e8c631456815e5911014f80054c5c6041667a3ddd1912d48838cd358eaee2cf0939
|
@@ -49,16 +49,14 @@ module CapistranoMulticonfigParallel
|
|
49
49
|
terminal_clear
|
50
50
|
# table.style = { width: 20 }
|
51
51
|
puts "\n#{table}\n"
|
52
|
-
sleep(
|
52
|
+
sleep(1)
|
53
53
|
if @job_manager.alive? && @manager.alive? && @manager.all_workers_finished?
|
54
54
|
@job_manager.condition.signal('completed')
|
55
|
-
else
|
56
|
-
terminate
|
57
55
|
end
|
58
56
|
end
|
59
57
|
|
60
58
|
def worker_state(job_id, job)
|
61
|
-
default = job.status.upcase.red
|
59
|
+
default = job.status.to_s.upcase.red
|
62
60
|
return default unless @manager.alive?
|
63
61
|
worker = @manager.get_worker_for_job(job_id)
|
64
62
|
worker.alive? ? worker.worker_state : default
|