fotonauts-god 0.7.10 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +13 -0
- data/Rakefile +1 -1
- data/lib/god.rb +2 -2
- data/lib/god/cli/run.rb +3 -0
- data/lib/god/task.rb +2 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
==
|
2
|
+
* Bug Fixes
|
3
|
+
* Auto daemonized processes are now stopped/unmonitored correctly [github.com/jcapote]
|
4
|
+
|
5
|
+
== 0.7.12 / 2008-12-10
|
6
|
+
* Bug Fixes
|
7
|
+
* Fix capistrano deployability [github.com/eric]
|
8
|
+
* Fix event handling [brianw]
|
9
|
+
|
10
|
+
== 0.7.11 / 2008-11-14
|
11
|
+
* Bug Fixes
|
12
|
+
* Make notifications work inside lifecycle blocks
|
13
|
+
|
1
14
|
== 0.7.10 / 2008-11-13
|
2
15
|
* Major Enhancements
|
3
16
|
* Enable sending of arbitrary signals to a task or group via `god signal`
|
data/Rakefile
CHANGED
data/lib/god.rb
CHANGED
@@ -148,7 +148,7 @@ class Module
|
|
148
148
|
end
|
149
149
|
|
150
150
|
module God
|
151
|
-
VERSION = '0.7.
|
151
|
+
VERSION = '0.7.12'
|
152
152
|
|
153
153
|
LOG_BUFFER_SIZE_DEFAULT = 100
|
154
154
|
PID_FILE_DIRECTORY_DEFAULTS = ['/var/run/god', '~/.god/pids']
|
@@ -420,7 +420,7 @@ module God
|
|
420
420
|
when "restart"
|
421
421
|
items.each { |w| jobs << Thread.new { w.move(:restart) } }
|
422
422
|
when "stop"
|
423
|
-
items.each { |w| jobs << Thread.new { w.
|
423
|
+
items.each { |w| jobs << Thread.new { w.action(:stop); w.unmonitor if w.state != :unmonitored } }
|
424
424
|
when "unmonitor"
|
425
425
|
items.each { |w| jobs << Thread.new { w.unmonitor if w.state != :unmonitored } }
|
426
426
|
when "remove"
|
data/lib/god/cli/run.rb
CHANGED
data/lib/god/task.rb
CHANGED
@@ -324,7 +324,7 @@ module God
|
|
324
324
|
messages = self.log_line(self, metric, condition, result)
|
325
325
|
|
326
326
|
# notify
|
327
|
-
if
|
327
|
+
if result && condition.notify
|
328
328
|
self.notify(condition, messages.last)
|
329
329
|
end
|
330
330
|
|
@@ -372,7 +372,7 @@ module God
|
|
372
372
|
messages = self.log_line(self, metric, condition, true)
|
373
373
|
|
374
374
|
# notify
|
375
|
-
if condition.notify
|
375
|
+
if condition.notify
|
376
376
|
self.notify(condition, messages.last)
|
377
377
|
end
|
378
378
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fotonauts-god
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-10 00:00:00 -08:00
|
13
13
|
default_executable: god
|
14
14
|
dependencies: []
|
15
15
|
|