capistrano_multiconfig_parallel 0.9.1 → 0.9.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22d640f28ad6af906f0e2bf0eccb2b193ce54509
|
4
|
+
data.tar.gz: 2ef7c6f96deb52a5239befc1dec1c51ccbe90bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f91d957896b8d407c25172acbc3dc62493fac265d9e42d8958eb4c02d6f0eead3cb5a28697b23153c6b81edce21edb83ee0f73cbdabf88b3d0185ce20b985a1
|
7
|
+
data.tar.gz: a1d6dba2bdd7821e65dd0e20e38d9ac3fa2955e10454e0e804b329c2057a316ce3ba6977ae0fcce5b90cddd2c9fd96982481fd86a6c9971d3ccc70040fd5360c
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'open3'
|
2
2
|
module CapistranoMulticonfigParallel
|
3
3
|
# class used to display the progress of each worker on terminal screen using a table
|
4
4
|
# rubocop:disable ClassLength
|
@@ -105,12 +105,13 @@ module CapistranoMulticonfigParallel
|
|
105
105
|
def add_job_to_table(table, job_id)
|
106
106
|
details = get_worker_details(job_id)
|
107
107
|
row = [{ value: job_id.to_s },
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
108
|
+
{ value: details['full_stage'] },
|
109
|
+
{ value: details['action_name'] },
|
110
|
+
{ value: details['env_options'] },
|
111
|
+
{ value: "#{details['state']}" }
|
112
|
+
]
|
113
113
|
if CapistranoMulticonfigParallel.show_task_progress
|
114
|
+
worker = @manager.get_worker_for_job(job_id)
|
114
115
|
row << { value: worker.rake_tasks.size }
|
115
116
|
row << { value: worker_progress(worker) }
|
116
117
|
end
|
@@ -123,6 +124,7 @@ module CapistranoMulticonfigParallel
|
|
123
124
|
end
|
124
125
|
|
125
126
|
def worker_progress(worker)
|
127
|
+
return worker_state(worker) unless worker.alive?
|
126
128
|
tasks = worker.rake_tasks
|
127
129
|
current_task = worker.machine.state
|
128
130
|
total_tasks = tasks.size
|