capistrano_multiconfig_parallel 0.7.6 → 0.7.7

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: 7a8d57903393f58ef911f5c626b8b14f0376501a
4
- data.tar.gz: f1874d761134fa05fa9b053893a23ae2a0776733
3
+ metadata.gz: 69b1623c9bafea21ddff2b588f08bee7b214408a
4
+ data.tar.gz: 2e9cb754af33f0f6808b9821b97b2e96d65998ad
5
5
  SHA512:
6
- metadata.gz: b8d096b6ca4d2ec2b87371e481d79bca534c47d65cd1861739192c6330a554889ae79cbe348df7724fa4f387dc9481e58132bbb4e9e359930926a94d0a6167e6
7
- data.tar.gz: 2bb0db846f2db807d041e1b1bced31889d0edd8eb76dd9f3a12befd0c42a1f42e26eaab2bfe3d31b65ccbe031f2df651fed4fe3e1972e2ef47a42eaeeb7c5bd6
6
+ metadata.gz: d492ad626da0730b60f0dd1214ed43e64872d3237fcdf9195290608834e009de3c36989fbfe7d128af13ddb13de6d0ac4a5d13bd20bd50e9bb661b13c67c8975
7
+ data.tar.gz: cea9979e1f32025ebf7a9bd2692085a5060670a1ca5bbd530d45d4add7d618ef8a959f0c65b1fd73386039f9aebeee6e2f0e7e421bf4afd84b52f324e15cbb39
data/README.md CHANGED
@@ -67,6 +67,7 @@ Ruby 1.8 is not officially supported. We will accept further compatibilty pull-r
67
67
 
68
68
  Rubinius and Jruby support temporarily dropped due to Rails 4 incompatibility.
69
69
 
70
+
70
71
  Installation Instructions
71
72
  --------
72
73
 
@@ -265,6 +266,9 @@ If you want different branches , capistrano will ask for additional ENV options
265
266
  If you use **capistrano-gitflow**, the workers will first deploy to all the other stages
266
267
  and only after staging is tagged , will trigger a new worker to start deploying to production
267
268
 
269
+ Known Limitations
270
+ --------
271
+ - Currently it works only if Celluloid.cores >= 2
268
272
 
269
273
  Testing
270
274
  --------
@@ -222,10 +222,14 @@ module CapistranoMulticonfigParallel
222
222
  async.delegate(job)
223
223
  end
224
224
 
225
+ def filtered_env_keys
226
+ ["STAGES", "ACTION"]
227
+ end
228
+
225
229
  def process_job(job)
226
230
  env_options = {}
227
231
  job['env_options'].each do |key, value|
228
- env_options[key] = value if value.present?
232
+ env_options[key] = value if value.present? && !filtered_env_keys.include?(key)
229
233
  end
230
234
  {
231
235
  'job_id' => job['id'],
@@ -60,7 +60,6 @@ module CapistranoMulticonfigParallel
60
60
 
61
61
  def verify_options_custom_command(options)
62
62
  options[:action] = @argv['ACTION'].present? ? @argv['ACTION'] : 'deploy'
63
- @argv = @argv['ACTION'].present? ? @argv.except('ACTION') : @argv
64
63
  options
65
64
  end
66
65
 
@@ -88,23 +87,24 @@ module CapistranoMulticonfigParallel
88
87
  end
89
88
 
90
89
  def tag_staging_exists? # check exists task from capistrano-gitflow
91
- rake1 = Rake::Task[CapistranoMulticonfigParallel::GITFLOW_TAG_STAGING_TASK]
92
- rake2 = Rake::Task[GITFLOW_CALCULATE_TAG_TASK]
93
- rake3 = Rake::Task[GITFLOW_VERIFY_UPTODATE_TASK]
94
- rake1.present? && check_giflow_tasks(rake2, rake3)
90
+ check_giflow_tasks(
91
+ CapistranoMulticonfigParallel::GITFLOW_TAG_STAGING_TASK,
92
+ CapistranoMulticonfigParallel::GITFLOW_CALCULATE_TAG_TASK,
93
+ CapistranoMulticonfigParallel::GITFLOW_VERIFY_UPTODATE_TASK
94
+ )
95
95
  rescue
96
96
  return false
97
97
  end
98
98
 
99
99
  def check_giflow_tasks(*tasks)
100
- tasks.all? {|t| t.present? && t.prerequisites.present? }
100
+ tasks.all? {|t| Rake::Task[t].present? }
101
101
  end
102
102
 
103
103
  def fetch_multi_stages
104
104
  stages = @argv['STAGES'].blank? ? '' : @argv['STAGES']
105
- @argv = @argv['STAGES'].present? ? @argv.except('STAGES') : @argv
106
105
  stages = parse_inputted_value(value: stages).split(',').compact if stages.present?
107
- stages.present? ? stages : [@default_stage]
106
+ stages = stages.present? ? stages : [@default_stage]
107
+ return stages
108
108
  end
109
109
 
110
110
  def wants_deploy_production?
@@ -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? && worker_environments.include?('staging')
115
+ using_git? && wants_deploy_production? && tag_staging_exists? && fetch_multi_stages.include?('staging')
116
116
  end
117
117
 
118
118
  def check_multi_stages(stages)
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 7
11
- TINY = 6
11
+ TINY = 7
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-03 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid-pmap