capistrano_multiconfig_parallel 0.12.8 → 0.12.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -10
- data/lib/capistrano_multiconfig_parallel/celluloid/celluloid_manager.rb +4 -6
- data/lib/capistrano_multiconfig_parallel/configuration.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/initializers/default.yml +0 -16
- data/lib/capistrano_multiconfig_parallel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a53cf2b0b25fe64301364b2af9d85fd2a39682a
|
4
|
+
data.tar.gz: 555e6e2bd1ee4f51547db96e1eb623fa955597e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dad6808d1aef470060d0536d05d15d9cb8ba2fa155e0b41a8b00b07467137017ca67a7c85d0316727d9c2e6c23c9d35345ea915e447046526e109a8c01e52c1
|
7
|
+
data.tar.gz: 6074a8eea7d7a3c291c68213f56fffa83cf6198ebef0341171ba1b5dabb3e2204942d254ae0775be5a2418cf7c63ba75736fcbe1cfc840107c25dc58a0678621
|
data/README.md
CHANGED
@@ -74,10 +74,8 @@ development_stages:
|
|
74
74
|
- development
|
75
75
|
- webdev
|
76
76
|
|
77
|
-
syncronize_confirmation: true
|
78
77
|
apply_stage_confirmation:
|
79
78
|
- production
|
80
|
-
task_confirmation_active: false
|
81
79
|
task_confirmations:
|
82
80
|
- deploy:symlink:release
|
83
81
|
|
@@ -105,18 +103,10 @@ Available command line options when executing a command
|
|
105
103
|
|
106
104
|
- if option is present and has value an ARRAY of STRINGS, each of them will be used as a development stage
|
107
105
|
|
108
|
-
- --syncronize_confirmation
|
109
|
-
|
110
|
-
- if option is present and has value TRUE, all workers will be synchronized to wait for same task from the \***task_confirmations** Array before they execute it
|
111
|
-
|
112
106
|
- --apply_stage_confirmation
|
113
107
|
|
114
108
|
- If option is present and has value an ARRAY of STRING, each string should be the name of a stage. The confirmations will only be applied if the workers are executing tasks to one of that stage.
|
115
109
|
|
116
|
-
- --task_confirmation_active
|
117
|
-
|
118
|
-
- if option is present and has value TRUE, will enable user confirmation dialogs before executing each task from option **--task_confirmations**
|
119
|
-
|
120
110
|
- --task_confirmations:
|
121
111
|
|
122
112
|
- if option is present and has value an ARRAY of Strings, and --task_confirmation_active is TRUE , then will require a confirmation from user before executing the task. This will syncronize all workers to wait before executing that task, then a confirmation will be displayed, and when user will confirm , all workers will resume their operation.
|
@@ -116,16 +116,14 @@ module CapistranoMulticonfigParallel
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def apply_confirmations?
|
119
|
-
|
119
|
+
confirmations = CapistranoMulticonfigParallel.configuration.task_confirmations
|
120
|
+
confirmations.is_a?(Array) && confirmations.present?
|
120
121
|
end
|
121
122
|
|
122
|
-
def syncronization_required?
|
123
|
-
CapistranoMulticonfigParallel.configuration.syncronize_confirmation.to_s.downcase == 'true'
|
124
|
-
end
|
125
123
|
|
126
124
|
def syncronized_confirmation?
|
127
|
-
(
|
128
|
-
(
|
125
|
+
(!@job_manager.executes_deploy_stages?) ||
|
126
|
+
(@job_manager.executes_deploy_stages? && !@job_manager.can_tag_staging? && @job_manager.confirmation_applies_to_all_workers?)
|
129
127
|
end
|
130
128
|
|
131
129
|
def apply_confirmation_for_worker(worker)
|
@@ -88,7 +88,7 @@ module CapistranoMulticonfigParallel
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def check_configuration(c)
|
91
|
-
%w(multi_debug multi_secvential
|
91
|
+
%w(multi_debug multi_secvential track_dependencies websocket_server.enable_debug).each do |prop|
|
92
92
|
c.send("#{prop}=", c[prop.to_sym]) if check_boolean(c, prop.to_sym)
|
93
93
|
end
|
94
94
|
%w(task_confirmations development_stages apply_stage_confirmation).each do |prop|
|
@@ -36,22 +36,6 @@ default_config:
|
|
36
36
|
default:
|
37
37
|
- deploy:symlink:release
|
38
38
|
|
39
|
-
- name: 'task_confirmation_active'
|
40
|
-
type: ':boolean'
|
41
|
-
description: >-
|
42
|
-
Requires a confirmation from user before executing the task.
|
43
|
-
This will syncronize all workers to wait before executing that task, then a confirmation will be displayed,
|
44
|
-
and when user will confirm , all workers will resume their operation.
|
45
|
-
CAP_VALUE can be true or false
|
46
|
-
default: false
|
47
|
-
|
48
|
-
- name: 'syncronize_confirmation'
|
49
|
-
type: ':boolean'
|
50
|
-
description: >-
|
51
|
-
All workers will be synchronized to wait for same task
|
52
|
-
from the ***task_confirmations** 'Array' before they execute it
|
53
|
-
CAP_VALUE can be true or false
|
54
|
-
default: TRUE
|
55
39
|
|
56
40
|
- name: 'apply_stage_confirmation'
|
57
41
|
type: 'Array'
|