evt-component_host 0.2.0.7 → 0.2.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e2fbc4904111758389a92eb4ca4effafb7e4ca05e1c28e5bdcc0038bfc04589
|
4
|
+
data.tar.gz: 246e5231070df0fbde7021b0365f421928fe54344e00f277ee022025f05495ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e9387bd584eedd5e46c854309eb8ebb953121a3cb80e0161ebb086737666eaa25bb494fe575817a91442936a88a226495472f9600df305b253210fe98f223a0
|
7
|
+
data.tar.gz: 3864c83b788904ae592361c7a48288bdc0b37e91fc9d89c1dbbba3204e9b36f4fc7f7db22f11136f2a30740a028168220ef6230c5e6504dec5a1f7632a3ff592
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module ComponentHost
|
2
|
-
def self.start(
|
2
|
+
def self.start(name, &block)
|
3
3
|
logger = Log.get(self)
|
4
4
|
|
5
5
|
host = Host.build
|
@@ -7,7 +7,7 @@ module ComponentHost
|
|
7
7
|
host.instance_exec host, &block
|
8
8
|
|
9
9
|
host.start do
|
10
|
-
logger.info(tags: [:*, :component, :start, :lifecycle]) { "Started: #{
|
10
|
+
logger.info(tags: [:*, :component, :start, :lifecycle]) { "Started: #{name} (ProcessID: #{::Process.pid})" }
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'component_host/controls/error'
|
2
|
-
require 'component_host/controls/
|
2
|
+
require 'component_host/controls/name'
|
3
3
|
require 'component_host/controls/start_component'
|
4
4
|
require 'component_host/controls/start_component/actor_crashes'
|
5
5
|
require 'component_host/controls/start_component/raises_error'
|
@@ -15,7 +15,7 @@ module ComponentHost
|
|
15
15
|
handle Actor::Messages::ActorCrashed do |msg|
|
16
16
|
error = msg.error
|
17
17
|
|
18
|
-
logger.error(tags: [:actor, :lifecycle, :stop, :crash]) { "Error raised (
|
18
|
+
logger.error(tags: [:actor, :lifecycle, :stop, :crash]) { "Error raised (Error: #{error.class.name}, Actor: #{msg.actor.digest}, Message: #{error.message.inspect})" }
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-component_host
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ntl-actor
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- lib/component_host/component_host.rb
|
105
105
|
- lib/component_host/controls.rb
|
106
106
|
- lib/component_host/controls/error.rb
|
107
|
-
- lib/component_host/controls/
|
107
|
+
- lib/component_host/controls/name.rb
|
108
108
|
- lib/component_host/controls/start_component.rb
|
109
109
|
- lib/component_host/controls/start_component/actor_crashes.rb
|
110
110
|
- lib/component_host/controls/start_component/raises_error.rb
|