capistrano_multiconfig_parallel 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capistrano_multiconfig_parallel/all.rb +3 -0
- data/lib/capistrano_multiconfig_parallel/classes/job.rb +6 -6
- data/lib/capistrano_multiconfig_parallel/classes/job_command.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/helpers/application_helper.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e1d4312452295e5649ec8f16875ed5cf7df545
|
4
|
+
data.tar.gz: a4b83b007b05ac1b4e0a477af9341ddb46863ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85a835d53145489c2341b3faa6cc602299e41833cb91bf28e1a011d130855a02dae3050fa82877efd71b3d5951314a3f2841c0bedf64904587b10b058766a3b
|
7
|
+
data.tar.gz: 0e9505e2c851511ecd3f33bf6cf6cae9cf11b92b0879051000d07f878ce4d0c34a733c37697ab8e2e5363aa604a2f354e43ad83d278d1c4b75f238f13aaa0d43
|
@@ -31,6 +31,7 @@ require 'yaml'
|
|
31
31
|
require 'stringio'
|
32
32
|
require 'io/console'
|
33
33
|
require 'forwardable'
|
34
|
+
require 'English'
|
34
35
|
|
35
36
|
# fix error with not files that can not be found
|
36
37
|
Gem.find_files('composable_state_machine/**/*.rb').each { |path| require path }
|
@@ -44,3 +45,5 @@ end
|
|
44
45
|
%w(version base application).each do |filename|
|
45
46
|
Gem.find_files("capistrano_multiconfig_parallel/#{filename}.rb").each { |path| require path }
|
46
47
|
end
|
48
|
+
|
49
|
+
Terminal::Table::Style.defaults = {:width => 140}
|
@@ -47,7 +47,7 @@ module CapistranoMulticonfigParallel
|
|
47
47
|
bundler_terminal_row
|
48
48
|
else
|
49
49
|
[
|
50
|
-
{ value: id.to_s },
|
50
|
+
{ value: wrap_string(id.to_s) },
|
51
51
|
{ value: wrap_string(job_stage_for_terminal) },
|
52
52
|
{ value: wrap_string(capistrano_action) },
|
53
53
|
{ value: terminal_env_variables.map { |str| wrap_string(str) }.join("\n") },
|
@@ -58,18 +58,18 @@ module CapistranoMulticonfigParallel
|
|
58
58
|
|
59
59
|
def bundler_check_terminal_row
|
60
60
|
[
|
61
|
-
{ value: id.to_s },
|
61
|
+
{ value: wrap_string(id.to_s) },
|
62
62
|
{ value: wrap_string(File.basename(job.job_path)) },
|
63
|
-
{ value: "bundle check || bundle install" },
|
63
|
+
{ value: wrap_string("bundle check || bundle install") },
|
64
64
|
{ value: wrap_string(bundler_check_status.to_s) }
|
65
65
|
]
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
def bundler_terminal_row
|
69
69
|
[
|
70
|
-
{ value: id.to_s },
|
70
|
+
{ value: wrap_string(id.to_s) },
|
71
71
|
{ value: wrap_string(job_stage_for_terminal) },
|
72
|
-
{ value: "Setting up gems.." },
|
72
|
+
{ value: wrap_string("Setting up gems..") },
|
73
73
|
{ value: terminal_env_variables.map { |str| wrap_string(str) }.join("\n") },
|
74
74
|
{ value: wrap_string(status.to_s.green) }
|
75
75
|
]
|
@@ -54,7 +54,7 @@ module CapistranoMulticonfigParallel
|
|
54
54
|
|
55
55
|
def job_gemfile_lock
|
56
56
|
@job_gemfile_lock ||= "#{job_gemfile}.lock"
|
57
|
-
raise "Please make sure you have a Gemfile.lock in the project root directory #{job_path}".
|
57
|
+
raise "Please make sure you have a Gemfile.lock in the project root directory #{job_path}".red unless File.exists?(@job_gemfile_lock)
|
58
58
|
@job_gemfile_lock
|
59
59
|
end
|
60
60
|
|
@@ -82,7 +82,7 @@ module CapistranoMulticonfigParallel
|
|
82
82
|
options.stringify_keys!
|
83
83
|
string.scan(/.{#{options.fetch('length', 40)}}|.+/).map(&:strip).join(options.fetch('character', $INPUT_RECORD_SEPARATOR))
|
84
84
|
end
|
85
|
-
|
85
|
+
|
86
86
|
def percent_of(index, total)
|
87
87
|
index.to_f / total.to_f * 100.0
|
88
88
|
end
|
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: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
@@ -559,7 +559,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
559
559
|
version: '0'
|
560
560
|
requirements: []
|
561
561
|
rubyforge_project:
|
562
|
-
rubygems_version: 2.6.
|
562
|
+
rubygems_version: 2.6.11
|
563
563
|
signing_key:
|
564
564
|
specification_version: 4
|
565
565
|
summary: CapistranoMulticonfigParallel is a simple ruby implementation that allows
|