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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f875c0ce62b45533a000e1950be07c29144ce27
|
4
|
+
data.tar.gz: 84bba1238ebf7ec3d34b8ab8b973f58d019ce170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|