capistrano_multiconfig_parallel 0.7.3 → 0.7.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8d57903393f58ef911f5c626b8b14f0376501a
|
4
|
+
data.tar.gz: f1874d761134fa05fa9b053893a23ae2a0776733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d096b6ca4d2ec2b87371e481d79bca534c47d65cd1861739192c6330a554889ae79cbe348df7724fa4f387dc9481e58132bbb4e9e359930926a94d0a6167e6
|
7
|
+
data.tar.gz: 2bb0db846f2db807d041e1b1bced31889d0edd8eb76dd9f3a12befd0c42a1f42e26eaab2bfe3d31b65ccbe031f2df651fed4fe3e1972e2ef47a42eaeeb7c5bd6
|
@@ -117,7 +117,7 @@ module CapistranoMulticonfigParallel
|
|
117
117
|
|
118
118
|
def syncronized_confirmation?
|
119
119
|
( syncronization_required? && !@job_manager.executes_deploy_stages?) ||
|
120
|
-
(@job_manager.executes_deploy_stages? && !@job_manager.can_tag_staging? && @job_manager.confirmation_applies_to_all_workers?)
|
120
|
+
(syncronization_required? && @job_manager.executes_deploy_stages? && !@job_manager.can_tag_staging? && @job_manager.confirmation_applies_to_all_workers?)
|
121
121
|
end
|
122
122
|
|
123
123
|
def apply_confirmation_for_worker(worker)
|
@@ -112,7 +112,7 @@ module CapistranoMulticonfigParallel
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def can_tag_staging?
|
115
|
-
using_git? && wants_deploy_production? && tag_staging_exists?
|
115
|
+
using_git? && wants_deploy_production? && tag_staging_exists? && worker_environments.include?('staging')
|
116
116
|
end
|
117
117
|
|
118
118
|
def check_multi_stages(stages)
|
@@ -138,9 +138,12 @@ module CapistranoMulticonfigParallel
|
|
138
138
|
fetch_app_additional_env_options
|
139
139
|
end
|
140
140
|
|
141
|
+
def worker_environments
|
142
|
+
@jobs.map { |job| job['env'] }
|
143
|
+
end
|
144
|
+
|
141
145
|
def confirmation_applies_to_all_workers?
|
142
|
-
|
143
|
-
CapistranoMulticonfigParallel.configuration.apply_stage_confirmation.all? { |e| environments.include?(e) }
|
146
|
+
CapistranoMulticonfigParallel.configuration.apply_stage_confirmation.all? { |e| worker_environments.include?(e) }
|
144
147
|
end
|
145
148
|
|
146
149
|
private
|