capistrano_multiconfig_parallel 0.12.8 → 0.12.9

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: 3f4cabdd4041b99eaddd7f84bc54d364ed1bbbe7
4
- data.tar.gz: b6beba4c0954046619b3a67ed48cb0177fba3c01
3
+ metadata.gz: 6a53cf2b0b25fe64301364b2af9d85fd2a39682a
4
+ data.tar.gz: 555e6e2bd1ee4f51547db96e1eb623fa955597e4
5
5
  SHA512:
6
- metadata.gz: 63eddae356a7597d489a79c58552ebc820d1fea75d7a67b44aa5a9b2b3804fa9be55ff635c9f15c8a6b1f4613f52aa0c2aa8f132b3f9fd3c1ea21248b6c8ef27
7
- data.tar.gz: 94f07f32411ce57a786b2bb2e571c674b0173fe952738744efd62f95e464def377d977915bec3a282cac0926af352cc800c2de4f5c8497bb1750373168e86e91
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
- CapistranoMulticonfigParallel.configuration.task_confirmation_active.to_s.downcase == 'true'
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
- (syncronization_required? && !@job_manager.executes_deploy_stages?) ||
128
- (syncronization_required? && @job_manager.executes_deploy_stages? && !@job_manager.can_tag_staging? && @job_manager.confirmation_applies_to_all_workers?)
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 task_confirmation_active track_dependencies websocket_server.enable_debug syncronize_confirmation).each do |prop|
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'
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 12
11
- TINY = 8
11
+ TINY = 9
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.12.8
4
+ version: 0.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada