capistrano_multiconfig_parallel 0.7.2 → 0.7.3
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: 828f0d38528428ce9c5e3059504af21b6a58328f
|
4
|
+
data.tar.gz: b2ce3277886f0073dc331fc7c18da6e5309f5d58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0722b724e80cfe635450bdf97c006971b2af97ae07d14389eaea8e4ad999729a7892318ac126fe18209fcf44c08d3d9f93edf2b988fe905a0054df010bb0ddc
|
7
|
+
data.tar.gz: 5dce7cc4496ae7be3aed924c2080470951d448c291833e6403ef8a30f89af7878b1df3fced89ce270dd05b2d9586fb777ccb5c8cf5fbc9dfac76bd10b7818fbb
|
@@ -111,10 +111,13 @@ module CapistranoMulticonfigParallel
|
|
111
111
|
def apply_confirmations?
|
112
112
|
CapistranoMulticonfigParallel.configuration.task_confirmation_active.to_s.downcase == 'true'
|
113
113
|
end
|
114
|
-
|
114
|
+
def syncronization_required?
|
115
|
+
CapistranoMulticonfigParallel.configuration.syncronize_confirmation.to_s.downcase == 'true'
|
116
|
+
end
|
117
|
+
|
115
118
|
def syncronized_confirmation?
|
116
|
-
(
|
117
|
-
(@job_manager.executes_deploy_stages? && @job_manager.confirmation_applies_to_all_workers?)
|
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?)
|
118
121
|
end
|
119
122
|
|
120
123
|
def apply_confirmation_for_worker(worker)
|
@@ -91,13 +91,13 @@ module CapistranoMulticonfigParallel
|
|
91
91
|
rake1 = Rake::Task[CapistranoMulticonfigParallel::GITFLOW_TAG_STAGING_TASK]
|
92
92
|
rake2 = Rake::Task[GITFLOW_CALCULATE_TAG_TASK]
|
93
93
|
rake3 = Rake::Task[GITFLOW_VERIFY_UPTODATE_TASK]
|
94
|
-
check_giflow_tasks(
|
94
|
+
rake1.present? && check_giflow_tasks(rake2, rake3)
|
95
95
|
rescue
|
96
96
|
return false
|
97
97
|
end
|
98
98
|
|
99
|
-
def check_giflow_tasks(
|
100
|
-
|
99
|
+
def check_giflow_tasks(*tasks)
|
100
|
+
tasks.all? {|t| t.present? && t.prerequisites.present? }
|
101
101
|
end
|
102
102
|
|
103
103
|
def fetch_multi_stages
|