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: 808fe6e708f7467e9217be29a02d3c35655687f2
4
- data.tar.gz: f7f2a71f361c913b7002dad9ac8565d5ddf3c124
3
+ metadata.gz: 22d640f28ad6af906f0e2bf0eccb2b193ce54509
4
+ data.tar.gz: 2ef7c6f96deb52a5239befc1dec1c51ccbe90bd8
5
5
  SHA512:
6
- metadata.gz: e8407b78757adda260e96e7bb8aaeae373a0db670e8c564d9073463f88fe07498abc57cc33d2ec31edbd69b42d35864df2e7e152922f097111fd6eab254a72b8
7
- data.tar.gz: efe0311672c329fa5fbf0e4d7dbea08e35a199079f03a0f95e850e24fa105d298be1107e8c971d7fa6f4283b0ee039004f5cafed8d6c7e611331774b91dc605f
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
- { value: details['full_stage'] },
109
- { value: details['action_name'] },
110
- { value: details['env_options'] },
111
- { value: "#{details['state']}" }
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 9
11
- TINY = 1
11
+ TINY = 2
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada