capistrano_multiconfig_parallel 1.1.7 → 1.1.8
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/README.md +3 -3
- data/capistrano_multiconfig_parallel.gemspec +1 -1
- data/lib/capistrano_multiconfig_parallel/configuration/default.yml +4 -4
- data/lib/capistrano_multiconfig_parallel/helpers/configuration.rb +9 -1
- data/lib/capistrano_multiconfig_parallel/helpers/core_helper.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/helpers/internal_helper.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea9eb1d4a1a812f4537c43763ae8b8e06d0389a9
|
4
|
+
data.tar.gz: 3dda5088a8f8c9bcda80c1443a194a56da22be1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b8882f05bc1024a4de97704ab9e9f44fd3c98aad2098a28bd913ba3573ab43b06f2beedd544884f8582e8c8f51bc871189a39ae4c758cfa10f6ea7f63f0146d
|
7
|
+
data.tar.gz: cde518492ae0e0192824c5a496abef86929e29bd4123364cbc03e0488abad5d2b45e8e157cbffce95d7dab6c53b030d36d548ff366a29f2419672d4e68d595a3
|
data/README.md
CHANGED
@@ -84,7 +84,7 @@ multi_debug: true
|
|
84
84
|
multi_secvential: false
|
85
85
|
websocket_server:
|
86
86
|
enable_debug: false
|
87
|
-
|
87
|
+
adapter: ''
|
88
88
|
log_file_path: './log/multi_cap_websocket.log'
|
89
89
|
terminal:
|
90
90
|
clear_screen: false
|
@@ -117,9 +117,9 @@ Available command line options when executing a command
|
|
117
117
|
|
118
118
|
- if option is present and has value TRUE, will enable debugging of websocket communication between the workers
|
119
119
|
|
120
|
-
- --websocket_server.
|
120
|
+
- --websocket_server.adapter
|
121
121
|
|
122
|
-
-
|
122
|
+
- Can be specified a different adapter for the websocket reactor class used for publish subscribe communication
|
123
123
|
|
124
124
|
- --websocket_server.log_file_path
|
125
125
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
|
20
20
|
s.add_runtime_dependency 'celluloid-pmap', '~> 0.2', '>= 0.2.2'
|
21
|
-
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.
|
21
|
+
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.6', '>= 0.6.0'
|
22
22
|
s.add_runtime_dependency 'celluloid-websocket-client', '~> 0.0', '>= 0.0.1'
|
23
23
|
s.add_runtime_dependency 'composable_state_machine', '~> 1.0', '>= 1.0.2'
|
24
24
|
s.add_runtime_dependency 'terminal-table', '~> 1.5', '>= 1.5.2'
|
@@ -20,11 +20,11 @@ default_config:
|
|
20
20
|
default: 'false'
|
21
21
|
required: false
|
22
22
|
|
23
|
-
- name: 'websocket_server.
|
24
|
-
type: '
|
23
|
+
- name: 'websocket_server.adapter'
|
24
|
+
type: 'string'
|
25
25
|
description: >-
|
26
|
-
|
27
|
-
default: '
|
26
|
+
Uses default reactor for publish subscribe communication
|
27
|
+
default: ''
|
28
28
|
required: false
|
29
29
|
|
30
30
|
- name: 'websocket_server.log_file_path'
|
@@ -84,6 +84,13 @@ module CapistranoMulticonfigParallel
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
def check_string_props(props)
|
88
|
+
props.each do |prop|
|
89
|
+
value = get_prop_config(prop)
|
90
|
+
@check_config[prop] = value if value.is_a?(String)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
87
94
|
def get_prop_config(prop, config = @check_config)
|
88
95
|
if prop.include?('.')
|
89
96
|
multi_level_prop(config, prop)
|
@@ -101,7 +108,8 @@ module CapistranoMulticonfigParallel
|
|
101
108
|
|
102
109
|
def check_configuration(config)
|
103
110
|
@check_config = config.stringify_keys
|
104
|
-
check_boolean_props(%w(multi_debug multi_secvential websocket_server.enable_debug
|
111
|
+
check_boolean_props(%w(multi_debug multi_secvential websocket_server.enable_debug terminal.clear_screen))
|
112
|
+
check_string_props(%w(websocket_server.adapter))
|
105
113
|
check_array_props(%w(task_confirmations development_stages apply_stage_confirmation))
|
106
114
|
check_directories(%w(log_dir config_dir))
|
107
115
|
verify_application_dependencies(@check_config['application_dependencies'], %w(app priority dependencies))
|
@@ -121,7 +121,7 @@ module CapistranoMulticonfigParallel
|
|
121
121
|
|
122
122
|
def websocket_config
|
123
123
|
create_log_file(websocket_server_config.fetch('log_file_path', nil)) if debug_websocket?
|
124
|
-
websocket_server_config.merge('enable_debug' => debug_websocket
|
124
|
+
websocket_server_config.merge('enable_debug' => debug_websocket?)
|
125
125
|
end
|
126
126
|
|
127
127
|
def execute_with_rescue(output = nil)
|
@@ -58,7 +58,7 @@ module CapistranoMulticonfigParallel
|
|
58
58
|
|
59
59
|
def find_config_type(type)
|
60
60
|
type = type.to_s
|
61
|
-
%w(boolean filename).include?(type) ? type.delete(':').to_sym : type.constantize
|
61
|
+
%w(boolean filename string).include?(type) ? type.delete(':').to_sym : type.constantize
|
62
62
|
end
|
63
63
|
|
64
64
|
def find_env_multi_cap_root
|
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.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid-pmap
|
@@ -36,20 +36,20 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.6'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.6.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '0.
|
49
|
+
version: '0.6'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.
|
52
|
+
version: 0.6.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: celluloid-websocket-client
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|