capistrano_multiconfig_parallel 0.31.0 → 0.31.1
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/img/parallel_demo-min.png +0 -0
- data/lib/capistrano_multiconfig_parallel/base.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/celluloid/child_process.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/celluloid/terminal_table.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/celluloid/web_server.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/classes/job_command.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/helpers/core_helper.rb +7 -7
- data/lib/capistrano_multiconfig_parallel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b93504a5622842d235bd3e44e42dbe975e83ec
|
4
|
+
data.tar.gz: d8489a215a2cbad5b636ef1843d724e78c98e375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4909493b8341c11ba695ea555255329e704dd5685f3aa9958aa68febd6a8ad50bdc2a73a185fd2cc183f90c9868908b75d56fe11ca7d49f4a7ffa91bff8f488b
|
7
|
+
data.tar.gz: 13f6939093552b461d94e01a90528c546ad91f8a4b6245f3cf99fb608951ab183a816dd41fa8215002d4b8e62143e4e75dce35404f4a351b22a3da8de2bff95e
|
data/img/parallel_demo-min.png
CHANGED
Binary file
|
@@ -32,7 +32,7 @@ module CapistranoMulticonfigParallel
|
|
32
32
|
|
33
33
|
def setup_em_error_handler
|
34
34
|
EM.error_handler do|exception|
|
35
|
-
|
35
|
+
log_error(exception, job_id: @job_id, output: 'stderr')
|
36
36
|
EM.stop
|
37
37
|
end
|
38
38
|
end
|
@@ -57,7 +57,7 @@ module CapistranoMulticonfigParallel
|
|
57
57
|
command = build_capistrano_task(action)
|
58
58
|
run_shell_command(command)
|
59
59
|
rescue => ex
|
60
|
-
|
60
|
+
rescue_error(ex, 'stderr')
|
61
61
|
execute_standard_deploy('deploy:rollback') if action.blank? && @name == 'deploy'
|
62
62
|
end
|
63
63
|
|
@@ -42,20 +42,20 @@ module CapistranoMulticonfigParallel
|
|
42
42
|
[CapistranoMulticonfigParallel::CelluloidWorker::TaskFailed, SystemExit].find { |class_name| error.is_a?(class_name) }.present?
|
43
43
|
end
|
44
44
|
|
45
|
-
def log_error(error,
|
46
|
-
return if error_filtered?(error)
|
45
|
+
def log_error(error, options = {})
|
47
46
|
message = format_error(error)
|
48
|
-
log_output_error(output, message)
|
49
|
-
log_to_file(message, log_method: 'fatal')
|
47
|
+
log_output_error(error, options.fetch(:output, nil), message)
|
48
|
+
log_to_file(message, options.merge(log_method: 'fatal'))
|
50
49
|
end
|
51
50
|
|
52
51
|
def terminal_actor
|
53
52
|
Celluloid::Actor[:terminal_server]
|
54
53
|
end
|
55
54
|
|
56
|
-
def log_output_error(output, message)
|
55
|
+
def log_output_error(error, output, message)
|
56
|
+
return if error_filtered?(error)
|
57
57
|
puts message if output.present?
|
58
|
-
terminal_actor.errors.push(message) if terminal_actor.
|
58
|
+
terminal_actor.errors.push(message) if terminal_actor.alive?
|
59
59
|
end
|
60
60
|
|
61
61
|
def format_error(exception)
|
@@ -119,7 +119,7 @@ module CapistranoMulticonfigParallel
|
|
119
119
|
end
|
120
120
|
|
121
121
|
def rescue_error(error, output = nil)
|
122
|
-
log_error(error, output)
|
122
|
+
log_error(error, output: output)
|
123
123
|
exit(1)
|
124
124
|
end
|
125
125
|
|