evt-component_host 0.1.0.3 → 0.2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/component_host/host.rb +8 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 22e6dd2cc6681fd0941401847e0e6aaca20895c3
4
- data.tar.gz: 14b47be7d2aa8c74139578ce9a9149da068cd179
2
+ SHA256:
3
+ metadata.gz: 2036220c3c0fe589ddf869267a8ddc11647364defd89d104db70d52b3505b065
4
+ data.tar.gz: d88180ab8ac34a1a53ffd5f9646374b7f2cd550de55b02edc9a4d0196e373b72
5
5
  SHA512:
6
- metadata.gz: 26c9f8e49d8c6dcb1298dc8637a17b500cd2c0798296cc4d152df64d021b5661deb6904b30af1ddb1c82701c07f7c6c342d6924e8a62dcfb05af76485abaef44
7
- data.tar.gz: 9a94cc1516049d61f8a888f250276279d2521d8ac44ecdaa59e802e9d29a4d27f6bfe23803f6fee0439c1fad124eeb3d7b93357a2703b174c296ff4ec389cacf
6
+ metadata.gz: 662b0bc8e3a03e17da7977a22b54c97ddaa20092e4171ef08b75a12590ffab1927b4b23be30d4943dfdb071014604532c5e4ae7281ec15504979c5d34724a9df
7
+ data.tar.gz: b4428a0d53240adab1a991120e72c8bcfe875db211ed0bd58d178757ee95692fbfac5fc63fd8974f8ec794074fbcd6f8fae96831a55938dc70547a8fb255f226
@@ -62,6 +62,14 @@ module ComponentHost
62
62
  logger.info { "Handled INT signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
63
63
  end
64
64
 
65
+ signal.trap 'TERM' do
66
+ message = Actor::Messages::Shutdown
67
+
68
+ send.(message, supervisor.address)
69
+
70
+ logger.info { "Handled TERM signal (MessageName: #{message.message_name}, SupervisorAddress: #{supervisor.address.id})" }
71
+ end
72
+
65
73
  start_components do |component|
66
74
  started_components << component
67
75
  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.1.0.3
4
+ version: 0.2.0.0
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: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ntl-actor
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.6.11
138
+ rubygems_version: 2.7.3
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Host components inside a single physical process