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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 593dec40475ff83393320fd37dbdcd0fe67a9608
4
- data.tar.gz: d47fa904c6f70f7458b4aeb2ba5f5c66488fb6d3
3
+ metadata.gz: ea9eb1d4a1a812f4537c43763ae8b8e06d0389a9
4
+ data.tar.gz: 3dda5088a8f8c9bcda80c1443a194a56da22be1a
5
5
  SHA512:
6
- metadata.gz: 782e97d513c8b2bee56f40c70391fbd81223f6b1c1712f67008a469bcd5c6e1623034568b03c0768b4275547d1a7489771954065eb3b8af94a0355f371febca1
7
- data.tar.gz: 1a1b584b6833f0757f3dd6a34142e0741e2b05182ce25bb3609a83bab259f0e8711403d1ea38cb23bfe94c7442a14c03a5fb506aa4cb22d87b0a87d79551e590
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
- use_redis: false
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.use_redis
120
+ - --websocket_server.adapter
121
121
 
122
- - Enables use of redis reactor for publish subscribe communication
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.5', '>= 0.5.2'
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.use_redis'
24
- type: 'boolean'
23
+ - name: 'websocket_server.adapter'
24
+ type: 'string'
25
25
  description: >-
26
- Enables use of redis reactor for publish subscribe communication
27
- default: 'false'
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 websocket_server.use_redis terminal.clear_screen))
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?, 'use_redis' => false)
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
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 1
11
- TINY = 7
11
+ TINY = 8
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.1.7
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-19 00:00:00.000000000 Z
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.5'
39
+ version: '0.6'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.5.2
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.5'
49
+ version: '0.6'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.5.2
52
+ version: 0.6.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: celluloid-websocket-client
55
55
  requirement: !ruby/object:Gem::Requirement