capistrano_multiconfig_parallel 0.7.3 → 0.7.6

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: 828f0d38528428ce9c5e3059504af21b6a58328f
4
- data.tar.gz: b2ce3277886f0073dc331fc7c18da6e5309f5d58
3
+ metadata.gz: 7a8d57903393f58ef911f5c626b8b14f0376501a
4
+ data.tar.gz: f1874d761134fa05fa9b053893a23ae2a0776733
5
5
  SHA512:
6
- metadata.gz: a0722b724e80cfe635450bdf97c006971b2af97ae07d14389eaea8e4ad999729a7892318ac126fe18209fcf44c08d3d9f93edf2b988fe905a0054df010bb0ddc
7
- data.tar.gz: 5dce7cc4496ae7be3aed924c2080470951d448c291833e6403ef8a30f89af7878b1df3fced89ce270dd05b2d9586fb777ccb5c8cf5fbc9dfac76bd10b7818fbb
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
- environments = @jobs.map { |job| job['env'] }
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 7
11
- TINY = 3
11
+ TINY = 6
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.3
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada