capistrano_multiconfig_parallel 1.0.1 → 1.0.2

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: e256f5593f081067ad8a360cc3a4c1b5b7fc795f
4
- data.tar.gz: 89965fc17997f0ccb37d29e26c65ec171ceaa3b0
3
+ metadata.gz: 4d0b7b1cfe67f16c272d09ff5d948ce2619effef
4
+ data.tar.gz: 57915be5a93164df96db3d34fcb1faecf0228e27
5
5
  SHA512:
6
- metadata.gz: 7e950e7632b21b090fdf8b5703556ba2a3e392a673bf630c10442afc88f7533450fa543ea90d052387dfce335d1ad436f9aa0e9965853634430f821b0e25f18b
7
- data.tar.gz: c9c702cfc18ab54de06ce9a91b5f66ce25bea977846f42c30cae5475b4bbfe77f0ddab5613dfedc52841baa39bf3295ee769a54fd963b5b6d8be9afaeba96029
6
+ metadata.gz: 46a25db273a76702d90dc7a121ef428ca455771b904e603dd9da8d2e18df017731d8dc780b788d7451622bd6ed608c39c6ddbb89da03005eed25fe865c765d78
7
+ data.tar.gz: af1b4d8eea23d33c31bb6f18656831c957599899fe636a22c295b6cec1f0b8f544b8bcbc23dfa7929cd21ed5b187317b0c26fcfaca580f968edabaf9c3adce62
@@ -55,7 +55,7 @@ module CapistranoMulticonfigParallel
55
55
  end
56
56
 
57
57
  def task_name
58
- @task.name
58
+ @task.respond_to?(:name) ? @task.name : @task
59
59
  end
60
60
 
61
61
  def task_data
@@ -9,7 +9,7 @@ module CapistranoMulticonfigParallel
9
9
  attr_accessor :task, :env, :config
10
10
  def initialize(env, task, config = nil)
11
11
  @env = env
12
- @task = task
12
+ @task = task.respond_to?(:fully_qualified_name) ? task.fully_qualified_name : task
13
13
  @config = config
14
14
  end
15
15
 
@@ -17,7 +17,7 @@ module CapistranoMulticonfigParallel
17
17
  if arguments[CapistranoMulticonfigParallel::ENV_KEY_JOB_ID].blank?
18
18
  run_the_application
19
19
  else
20
- ARGV.reject! { |arg| default_config_keys.include?(arg.split('=')[0].tr('--', '')) }
20
+ ARGV.reject! { |arg| arg_is_in_default_config?(arg) }
21
21
  run_capistrano
22
22
  end
23
23
  end
@@ -30,8 +30,12 @@ module CapistranoMulticonfigParallel
30
30
  end
31
31
 
32
32
  def default_config_keys
33
- default_internal_config.map{ |array| array[0].to_s }
34
- end
33
+ default_internal_config.map { |array| array[0].to_s }
34
+ end
35
+
36
+ def arg_is_in_default_config?(arg)
37
+ default_config_keys.find { |key| key == arg.split('=')[0].tr('--', '') }.present?
38
+ end
35
39
 
36
40
  def default_internal_configuration_params(new_config)
37
41
  array = []
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 0
11
- TINY = 1
11
+ TINY = 2
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid-pmap