capistrano_multiconfig_parallel 0.7.2 → 0.7.3

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: 687d5ce10ba6d19b23f568b0f3720efcb63fec76
4
- data.tar.gz: 57b964b1a4240c1eba257b08e941be42c16b75c9
3
+ metadata.gz: 828f0d38528428ce9c5e3059504af21b6a58328f
4
+ data.tar.gz: b2ce3277886f0073dc331fc7c18da6e5309f5d58
5
5
  SHA512:
6
- metadata.gz: ce330e6135be9ca3bf26d4d458cf29f865b1025382d85f4d19ea66b76da0bdf7808a1c90b472c79521f772ac40a2623f7375d21a988b0f0d607d974cfe4b460d
7
- data.tar.gz: 26b31b33f4f1c9f0038296ad31195d44385bfb71e7817aec208f5b3b46078be325fd2d2e82632f454cf78bbec39496c07e3f39902f7263bf5797f1b5ed6ea12f
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
- (CapistranoMulticonfigParallel.configuration.syncronize_confirmation.to_s.downcase == 'true' && !@job_manager.executes_deploy_stages?) ||
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(rake1, rake2, rake3)
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(rake1, rake2, rake3)
100
- rake1.present? && rake2.present? && rake3.present? && rake2.prerequisites.present? && rake2.actions.present? && rake3.prerequisites.present?
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 7
11
- TINY = 2
11
+ TINY = 3
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.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada