capistrano_multiconfig_parallel 0.21.0 → 0.21.1

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: ba9973965ea61da495ec59d3cd50c8465267532a
4
- data.tar.gz: ac92a48585d8b7491120f898a38b8a5fc9439316
3
+ metadata.gz: 60af09c8a72d2b13a5a6dd7ed0b92c2b9a98d3ea
4
+ data.tar.gz: a66690a55513f91e77cacd4624e88055c8ecf0b5
5
5
  SHA512:
6
- metadata.gz: ee5a2f3d237b7eeca37eb51b9358f3cce6b47fec61dcfa1923fa5bf014299b65a238c0a72f03ee3a7eca1b16afb0c6c3747ccd6e00d1f885e9d14fa827f4bf77
7
- data.tar.gz: 5c70b0cdb8b7a347babfba5fdeaad76c99128d4f66f2b22f5473d628e1c66796148ec17881b9626d21874b7c5bcd1a0cbefa21eb15361bf68eb74dee73b35423
6
+ metadata.gz: 08932e497cbc2eee256c64c2f3722b9061183ff2f09ffee6c4e5f942ca3ac70335bf508b8ed19d1060fb372707accb5e2d66ab84e99ad0baff936fec437ec0b0
7
+ data.tar.gz: 6260627ed82218041207c985530f7af7cba87c9ad817ec6a905048b171d9b1de5d59624d0f17680cd6c4c6ddc188288caedeeb9590e060dcf1492cf49695ca1a
@@ -46,7 +46,7 @@ module CapistranoMulticonfigParallel
46
46
  @machine.state.to_s.green
47
47
  else
48
48
  job.status = 'dead'
49
- 'dead'.upcase.red
49
+ job.status.upcase.red
50
50
  end
51
51
  end
52
52
 
@@ -55,10 +55,10 @@ module CapistranoMulticonfigParallel
55
55
  @job_manager.condition.signal('completed') if @manager.all_workers_finished?
56
56
  end
57
57
 
58
- def worker_state(job_id)
58
+ def worker_state(job_id, job)
59
59
  return unless @manager.alive?
60
60
  worker = @manager.get_worker_for_job(job_id)
61
- worker.alive? ? worker.worker_state : 'dead'.upcase.red
61
+ worker.alive? ? worker.worker_state : job.status.upcase.red
62
62
  end
63
63
 
64
64
  def filtered_env_keys
@@ -71,7 +71,7 @@ module CapistranoMulticonfigParallel
71
71
  { value: job.job_stage },
72
72
  { value: job.capistrano_action },
73
73
  { value: job.setup_command_line_standard(filtered_keys: [CapistranoMulticonfigParallel::ENV_KEY_JOB_ID]).join("\n") },
74
- { value: worker_state(job_id) }
74
+ { value: worker_state(job_id, job) }
75
75
  ]
76
76
 
77
77
  # if worker.alive?
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 21
11
- TINY = 0
11
+ TINY = 1
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.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada