capistrano_multiconfig_parallel 1.0.3 → 1.0.4

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: 174070f0e36a324bb314f18e1972979f8374f86c
4
- data.tar.gz: c86a2e800e4877a6c54df3166952767ea5bdee20
3
+ metadata.gz: 7d2f26567119f10125fc2405dfbf2c43ac58abbd
4
+ data.tar.gz: 3038d99e240a14ba32becc87d6f4d3f92a73c220
5
5
  SHA512:
6
- metadata.gz: 759f77792880ab77d30b8ae65bd1f7c1814a72f0996712c0154d9626e9bdca669db20eeea6a0c2f455521ea8a951cb588cd03d6db0f235df5e3ea9b549d087bf
7
- data.tar.gz: 09e448c0f926b15f5748e480d6d9e84c9d0479c9296d82028f6ebc8026ddfd853601ec6ed845a869f4125d858207a0aebe8f3fca15e21cde277d88d0c6506877
6
+ metadata.gz: 15f3503e0ba919497e95f1891d3a866ea5ccfbc0601861cb9ed9488a0c1850a2b1675122522fd81420c7eccd89c5bad580ba55f023dd7153a12fb6f6c252e827
7
+ data.tar.gz: 0616700d0b686d3a74875a688989e87d7b7aa34097fd1f7c7806150ec14a6daa303eecd8b772cb66a94f32280fa31448fbec9a07bc87f2ec678d28721bd3bead
data/README.md CHANGED
@@ -17,12 +17,12 @@ IMPORTANT! The whole reason for this gem was for using [Caphub](https://github.c
17
17
 
18
18
  CAUTION!! PLEASE READ CAREFULLY!! Capistrano is not thread-safe. However in order to work around this problem, each of the task is executing inside a thread that spawns a new process in order to run capistrano tasks The thread monitors the process. This works well, however if the tasks you are executing is working with files, you might get into deadlocks because multiple proceses try to access same resource. Instead of using files , please consider using StringIO instead.
19
19
 
20
- NEW Improvements in version 1.0.2
20
+ NEW Improvements in version 1.0.3
21
21
  ---------------------------------
22
22
 
23
23
  - added support for Capistrano version 2 (Capistrano 3 was already supported)
24
24
  - a lot of refactoring and bug fixes
25
- - removed BRANCH variable ( this needs to be passed when asked for additional env options for each job!!!) ( for Capistrano 2 should be **-S branch=<branch_name>**, for Capistrano 3 should be **BRANCH=<branch_name>**, or could be something else depending on your configuration).
25
+ - removed BRANCH variable ( this needs to be passed when asked for additional env options for each job!!!) ( for Capistrano 2 should be **-S branch=branch_name**, for Capistrano 3 should be **BRANCH=branch_name**, or could be something else depending on your configuration).
26
26
 
27
27
  Requirements
28
28
  ------------
@@ -20,6 +20,10 @@ module CapistranoMulticonfigParallel
20
20
  set_celluloid_exception_handling
21
21
  end
22
22
 
23
+ def original_args_hash
24
+ multi_fetch_argv(original_args.dup)
25
+ end
26
+
23
27
  def capistrano_version
24
28
  find_loaded_gem_property('capistrano', 'version')
25
29
  end
@@ -52,16 +52,6 @@ module CapistranoMulticonfigParallel
52
52
  index.to_f / total.to_f * 100.0
53
53
  end
54
54
 
55
- def multi_fetch_argv(args)
56
- options = {}
57
- args.each do |arg|
58
- if arg =~ /^(\w+)=(.*)$/m
59
- options[Regexp.last_match(1)] = Regexp.last_match(2)
60
- end
61
- end
62
- options
63
- end
64
-
65
55
  def action_confirmed?(result)
66
56
  result.present? && result.downcase == 'y'
67
57
  end
@@ -3,6 +3,16 @@ module CapistranoMulticonfigParallel
3
3
  module CoreHelper
4
4
  module_function
5
5
 
6
+ def multi_fetch_argv(args)
7
+ options = {}
8
+ args.each do |arg|
9
+ if arg =~ /^(\w+)=(.*)$/m
10
+ options[Regexp.last_match(1)] = Regexp.last_match(2)
11
+ end
12
+ end
13
+ options
14
+ end
15
+
6
16
  def app_debug_enabled?
7
17
  configuration.multi_debug.to_s.downcase == 'true'
8
18
  end
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 0
11
- TINY = 3
11
+ TINY = 4
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada