capistrano_multiconfig_parallel 0.2.0 → 0.2.1
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: 5b9578694025dca215377cd4d9d78dea9a0bad48
|
4
|
+
data.tar.gz: 0de2d1f4b3c3ad520620769ac2e2baf3c2b88e67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c123c22fc754c732ec4d64be8477f264e2deb67080b638848a23253453aa3e0270281c6867516d618ed427bf86c245e3811b7dc300c692afe1a94f9493dac50
|
7
|
+
data.tar.gz: 5e8cd281aed6385d4bb2e072767572206a6c1b824bb8a0b4ce0cef170e50e7f6ab9aad40036d17f31fc0a609b3defedd34abb80310d896081a9e6ed322bcfcf3
|
@@ -121,13 +121,11 @@ module CapistranoMulticonfigParallel
|
|
121
121
|
app = app.fetch('app', '')
|
122
122
|
box = options['env_options']['BOX']
|
123
123
|
message = box.present? ? "BOX #{box}:" : "stage #{options['stage']}:"
|
124
|
-
branch_name = get_applications_branch_from_stdin(app, message) if branch_name.blank?
|
125
124
|
env_opts = get_app_additional_env_options(app, message)
|
126
125
|
|
127
|
-
options['env_options'] = options['env_options'].reverse_merge(env_opts)
|
128
|
-
|
129
|
-
|
130
|
-
}.merge(options['env_options'])
|
126
|
+
options['env_options'] = options['env_options'].reverse_merge(env_opts.except('BOX'))
|
127
|
+
|
128
|
+
env_options = branch_name.present? ? { 'BRANCH' => branch_name }.merge(options['env_options']) : options['env_options']
|
131
129
|
|
132
130
|
job = {
|
133
131
|
app: app,
|
@@ -166,23 +164,7 @@ module CapistranoMulticonfigParallel
|
|
166
164
|
end
|
167
165
|
end
|
168
166
|
|
169
|
-
|
170
|
-
app_name = (app.is_a?(Hash) && app[:app].present?) ? app[:app].camelcase : app
|
171
|
-
app_name = app_name.present? ? app_name : 'current application'
|
172
|
-
message = "Please enter Branch name for #{app_name} for #{app_message}"
|
173
|
-
get_branch_name_from_stdin(message)
|
174
|
-
end
|
175
|
-
|
176
|
-
def get_branch_name_from_stdin(message)
|
177
|
-
branch = ''
|
178
|
-
if @argv['BRANCH'].blank? || (@argv['BRANCH'].present? && !custom_command?)
|
179
|
-
set :app_branch_name, CapistranoMulticonfigParallel.ask_confirm(message, nil)
|
180
|
-
branch = parse_inputted_value
|
181
|
-
else
|
182
|
-
branch = @argv['BRANCH']
|
183
|
-
end
|
184
|
-
branch
|
185
|
-
end
|
167
|
+
|
186
168
|
|
187
169
|
def get_app_additional_env_options(app, app_message)
|
188
170
|
app_name = (app.is_a?(Hash) && app[:app].present?) ? app[:app].camelcase : app
|
@@ -198,6 +180,7 @@ module CapistranoMulticonfigParallel
|
|
198
180
|
env_options = parse_inputted_value(key: :app_additional_env_options)
|
199
181
|
env_options = env_options.split(' ')
|
200
182
|
options = multi_fetch_argv(env_options)
|
183
|
+
options.stringify_keys!
|
201
184
|
options
|
202
185
|
end
|
203
186
|
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid-pmap
|