toiler 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 170b7e2e4b16bb2568999e103ce61d9aef4d54f6
4
- data.tar.gz: ab418ceceab79b0f359b29f425c30f154be3cb78
3
+ metadata.gz: 5eedc8a169886aea91aebb35f7d10dbdc9ac5245
4
+ data.tar.gz: 1c04a0571248d7aacd46ad4c64ec56d4f8d6fcc1
5
5
  SHA512:
6
- metadata.gz: 2ca8573d470f3050cc9e651d0a49fb70a27d8c5951c8527185fc7730fc4846095168a972944cb9520277633cbdbfc039c347a44c9438d5f6cac4249502fbb81a
7
- data.tar.gz: dcd62fb0deb773b7d474ea0e45f9c9c5d214f9a1196467be8416933dbcccd36de5274c550e0d3730558fa6da32e2f433c00d63940f01d701cb45b65f249e00bc
6
+ metadata.gz: 0fd47ee9148c6e1b21abe50e2d0964c3ca1e40c8b2dfaa0991dabd39a1d65b74b43b30e2087ffa01b74ff2b31831881a10be06539242214251a579876ce5c6be
7
+ data.tar.gz: 005186aea9489a9e2eb8175c93e20faded2adb7ba0dc41f24a767309109769947f09baea17381a769932e29a364bba104d3de316aa58022cdbf4073eb57675c1
data/lib/toiler/cli.rb CHANGED
@@ -34,8 +34,13 @@ module Toiler
34
34
  handle_signal(readable_io.first[0].gets.strip)
35
35
  end
36
36
  rescue Interrupt
37
- puts 'Waiting up to 60 seconds for actors to finish...'
38
- supervisor.ask(:terminate!).wait(60)
37
+ Toiler.logger.info 'Received Interrupt, Waiting up to 60 seconds for actors to finish...'
38
+ success = supervisor.ask(:terminate!).wait(60)
39
+ if success
40
+ Toiler.logger.info 'Supervisor successfully terminated'
41
+ else
42
+ Toiler.logger.info 'Timeout waiting dor Supervisor to terminate'
43
+ end
39
44
  ensure
40
45
  exit 0
41
46
  end
@@ -1,4 +1,4 @@
1
1
  # Toiler Version
2
2
  module Toiler
3
- VERSION = '0.3.4'.freeze
3
+ VERSION = '0.3.5'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Schepens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler