capistrano_multiconfig_parallel 0.11.3 → 0.11.4

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: 6e3ee4bdf3fef14756626f8c3aa37346af35061f
4
- data.tar.gz: a7977209db28f942efd3cd5782b0f4b418bc3d3e
3
+ metadata.gz: 6f875c0ce62b45533a000e1950be07c29144ce27
4
+ data.tar.gz: 84bba1238ebf7ec3d34b8ab8b973f58d019ce170
5
5
  SHA512:
6
- metadata.gz: 29010db137366388494ad4cf1a877d16451bb72ce6d2ca3b7077029f36801c944254549c4ab7f9b6d64e873a9cc11339c9c30972e888b7bd99c887fb212db151
7
- data.tar.gz: 3401ec88ed79515d49d5c8fa20b17790b5ac79fb5aceb8b732877332ce698da0007000eec67f3a3b4fe1d727d76dccf5df899ed0df9921094b2f1e12a4bbdc81
6
+ metadata.gz: 1496ae740cedc802a1bfd4bc08144d0c2a9a460851fa033db1803acb89914dc7153fc2abe6168ec94407db409af28117487763facd211eb96e3263b5556dbac1
7
+ data.tar.gz: ec2a584c2be6e966339407956df2d2ee954bcdc7729ee3e3675b2aab8d52fd0eab289d11f620e6643002424c4d9fd10f740d11d9c105c17a3a7d2d611255c4e4
@@ -25,7 +25,7 @@ module CapistranoMulticonfigParallel
25
25
  attr_accessor :job, :manager, :job_id, :app_name, :env_name, :action_name, :env_options, :machine, :client, :task_argv, :execute_deploy, :executed_dry_run,
26
26
  :rake_tasks, :current_task_number, # tracking tasks
27
27
  :successfull_subscription, :subscription_channel, :publisher_channel, # for subscriptions and publishing events
28
- :job_termination_condition, :worker_state, :executing_dry_run, :job_argv
28
+ :job_termination_condition, :worker_state, :executing_dry_run, :job_argv, :dry_run_tasks
29
29
 
30
30
  def work(job, manager)
31
31
  @job = job
@@ -88,6 +88,10 @@ module CapistranoMulticonfigParallel
88
88
  def rake_tasks
89
89
  @rake_tasks ||= []
90
90
  end
91
+
92
+ def dry_run_tasks
93
+ @dry_run_tasks ||= []
94
+ end
91
95
 
92
96
  def cd_working_directory
93
97
  "cd #{CapistranoMulticonfigParallel.detect_root}"
@@ -169,7 +173,8 @@ module CapistranoMulticonfigParallel
169
173
 
170
174
  def save_tasks_to_be_executed(message)
171
175
  debug("worler #{@job_id} current invocation chain : #{rake_tasks.inspect}") if debug_enabled?
172
- rake_tasks << message['task'] if rake_tasks.last != message['task']
176
+ rake_tasks << message['task'] if rake_tasks.last != message['task']
177
+ dry_run_tasks << message['task'] if dry_running? && dry_run_tasks.last != message['task']
173
178
  end
174
179
 
175
180
  def update_machine_state(name)
@@ -135,7 +135,7 @@ module CapistranoMulticonfigParallel
135
135
  def worker_progress(details, worker)
136
136
  return worker_state(worker) unless worker.alive?
137
137
  return if worker.executing_dry_run.nil?
138
- tasks = worker.alive? ? worker.rake_tasks : []
138
+ tasks = worker.alive? ? worker.dry_run_tasks : []
139
139
  current_task = worker.alive? ? worker.machine.state.to_s : ""
140
140
  total_tasks = worker_dry_running?(worker) ? nil : tasks.size
141
141
  task_index = worker_dry_running?(worker) ? 0 : tasks.index(current_task.to_s).to_i + 1
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 11
11
- TINY = 3
11
+ TINY = 4
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.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada