capistrano_multiconfig_parallel 0.7.6 → 0.7.7
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: 69b1623c9bafea21ddff2b588f08bee7b214408a
|
4
|
+
data.tar.gz: 2e9cb754af33f0f6808b9821b97b2e96d65998ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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?
|
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
|
-
|
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? &&
|
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)
|
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.
|
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-
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid-pmap
|