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: f5a35a7ede67c601da4e663947e5e58fb0e83065
4
- data.tar.gz: 9307b72fb8716cf0117307eb5d9a5c86169b5601
3
+ metadata.gz: 5b9578694025dca215377cd4d9d78dea9a0bad48
4
+ data.tar.gz: 0de2d1f4b3c3ad520620769ac2e2baf3c2b88e67
5
5
  SHA512:
6
- metadata.gz: 4ac2faaeabb21aae54db13122d077fd0a93d973fd172f54bd38c12d75fbbaa28f035eba4da08f643ad977e01f97300d45fa046ff6c0e986fa690e3d03277b046
7
- data.tar.gz: dc6cbf259342a4f4e44e663e97a41b7295cb42286fb164f0780de80c4e631348b156fe74bcf5b5e778d92f049cb874ed956afbac76681fa0cec6a1d03eaa486b
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
- env_options = {
129
- 'BRANCH' => branch_name
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
- def get_applications_branch_from_stdin(app, app_message)
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
 
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 2
11
- TINY = 0
11
+ TINY = 1
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.2.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid-pmap