eric-god 0.7.12 → 0.7.14
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.
- data/.gitignore +8 -0
- data/Announce.txt +135 -0
- data/History.txt +15 -0
- data/Rakefile +43 -11
- data/VERSION.yml +4 -0
- data/ext/god/.gitignore +5 -0
- data/ext/god/netlink_handler.c +1 -0
- data/god.gemspec +222 -0
- data/ideas/execve/execve.c +29 -0
- data/ideas/execve/extconf.rb +11 -0
- data/ideas/execve/go.rb +8 -0
- data/ideas/future.god +82 -0
- data/init/lsb_compliant_god +109 -0
- data/lib/god.rb +7 -4
- data/lib/god/cli/command.rb +2 -1
- data/lib/god/cli/version.rb +2 -2
- data/lib/god/contacts/jabber.rb +82 -20
- data/lib/god/logger.rb +5 -1
- data/lib/god/process.rb +1 -7
- data/site/images/banner.jpg +0 -0
- data/site/images/bg.gif +0 -0
- data/site/images/bg_grey.gif +0 -0
- data/site/images/bullet.jpg +0 -0
- data/site/images/corner_green.gif +0 -0
- data/site/images/corner_green.psd +0 -0
- data/site/images/corner_pink.gif +0 -0
- data/site/images/god_logo1.gif +0 -0
- data/site/images/header_bg.gif +0 -0
- data/site/images/header_bg.jpg +0 -0
- data/site/images/red_dot.gif +0 -0
- data/site/images/top_bg.gif +0 -0
- data/site/index.html +563 -0
- data/site/install.html +2 -0
- data/site/javascripts/code_highlighter.js +188 -0
- data/site/javascripts/ruby.js +18 -0
- data/site/stylesheets/layout.css +174 -0
- data/test/configs/lifecycle/lifecycle.god +25 -0
- data/test/test_god.rb +2 -2
- data/test/test_jabber.rb +36 -0
- data/test/test_logger.rb +4 -1
- data/test/test_webhook.rb +17 -0
- metadata +73 -28
- data/Manifest.txt +0 -114
data/test/test_logger.rb
CHANGED
|
@@ -7,7 +7,8 @@ class TestLogger < Test::Unit::TestCase
|
|
|
7
7
|
|
|
8
8
|
# log
|
|
9
9
|
|
|
10
|
-
def
|
|
10
|
+
def test_log_should_keep_logs_when_wanted
|
|
11
|
+
@log.watch_log_since('foo', Time.now)
|
|
11
12
|
@log.expects(:info).with("qux")
|
|
12
13
|
|
|
13
14
|
no_stdout do
|
|
@@ -32,6 +33,8 @@ class TestLogger < Test::Unit::TestCase
|
|
|
32
33
|
def test_watch_log_since
|
|
33
34
|
t1 = Time.now
|
|
34
35
|
|
|
36
|
+
@log.watch_log_since('foo', t1)
|
|
37
|
+
|
|
35
38
|
no_stdout do
|
|
36
39
|
@log.log(stub(:name => 'foo'), :info, "one")
|
|
37
40
|
@log.log(stub(:name => 'foo'), :info, "two")
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/helper'
|
|
2
|
+
|
|
3
|
+
class TestWebhook < Test::Unit::TestCase
|
|
4
|
+
def test_exists
|
|
5
|
+
God::Contacts::Webhook
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def test_notify
|
|
9
|
+
assert_nothing_raised do
|
|
10
|
+
g = God::Contacts::Webhook.new
|
|
11
|
+
g.hook_url = 'http://test/switch'
|
|
12
|
+
Net::HTTP.expects(:post_form)
|
|
13
|
+
g.notify(:a, :b, :c, :d, :e)
|
|
14
|
+
assert_equal "sent webhook to http://test/switch", g.info
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eric-god
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Preston-Werner
|
|
@@ -9,33 +9,41 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-08-10 00:00:00 -07:00
|
|
13
13
|
default_executable: god
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
16
|
description: God is an easy to configure, easy to extend monitoring framework written in Ruby.
|
|
17
|
-
email: tom@
|
|
17
|
+
email: tom@mojombo.com
|
|
18
18
|
executables:
|
|
19
19
|
- god
|
|
20
20
|
extensions:
|
|
21
21
|
- ext/god/extconf.rb
|
|
22
22
|
extra_rdoc_files:
|
|
23
|
-
- History.txt
|
|
24
|
-
- Manifest.txt
|
|
25
23
|
- README.txt
|
|
26
24
|
files:
|
|
25
|
+
- .gitignore
|
|
26
|
+
- Announce.txt
|
|
27
27
|
- History.txt
|
|
28
|
-
- Manifest.txt
|
|
29
28
|
- README.txt
|
|
30
29
|
- Rakefile
|
|
30
|
+
- VERSION.yml
|
|
31
31
|
- bin/god
|
|
32
32
|
- examples/events.god
|
|
33
33
|
- examples/gravatar.god
|
|
34
34
|
- examples/single.god
|
|
35
|
+
- ext/god/.gitignore
|
|
35
36
|
- ext/god/extconf.rb
|
|
36
37
|
- ext/god/kqueue_handler.c
|
|
37
38
|
- ext/god/netlink_handler.c
|
|
39
|
+
- god.gemspec
|
|
40
|
+
- ideas/execve/.DS_Store
|
|
41
|
+
- ideas/execve/execve.c
|
|
42
|
+
- ideas/execve/extconf.rb
|
|
43
|
+
- ideas/execve/go.rb
|
|
44
|
+
- ideas/future.god
|
|
38
45
|
- init/god
|
|
46
|
+
- init/lsb_compliant_god
|
|
39
47
|
- lib/god.rb
|
|
40
48
|
- lib/god/behavior.rb
|
|
41
49
|
- lib/god/behaviors/clean_pid_file.rb
|
|
@@ -87,6 +95,23 @@ files:
|
|
|
87
95
|
- lib/god/timeline.rb
|
|
88
96
|
- lib/god/trigger.rb
|
|
89
97
|
- lib/god/watch.rb
|
|
98
|
+
- site/images/banner.jpg
|
|
99
|
+
- site/images/bg.gif
|
|
100
|
+
- site/images/bg_grey.gif
|
|
101
|
+
- site/images/bullet.jpg
|
|
102
|
+
- site/images/corner_green.gif
|
|
103
|
+
- site/images/corner_green.psd
|
|
104
|
+
- site/images/corner_pink.gif
|
|
105
|
+
- site/images/god_logo1.gif
|
|
106
|
+
- site/images/header_bg.gif
|
|
107
|
+
- site/images/header_bg.jpg
|
|
108
|
+
- site/images/red_dot.gif
|
|
109
|
+
- site/images/top_bg.gif
|
|
110
|
+
- site/index.html
|
|
111
|
+
- site/install.html
|
|
112
|
+
- site/javascripts/code_highlighter.js
|
|
113
|
+
- site/javascripts/ruby.js
|
|
114
|
+
- site/stylesheets/layout.css
|
|
90
115
|
- test/configs/child_events/child_events.god
|
|
91
116
|
- test/configs/child_events/simple_server.rb
|
|
92
117
|
- test/configs/child_polls/child_polls.god
|
|
@@ -102,6 +127,7 @@ files:
|
|
|
102
127
|
- test/configs/daemon_polls/simple_server.rb
|
|
103
128
|
- test/configs/degrading_lambda/degrading_lambda.god
|
|
104
129
|
- test/configs/degrading_lambda/tcp_server.rb
|
|
130
|
+
- test/configs/lifecycle/lifecycle.god
|
|
105
131
|
- test/configs/matias/matias.god
|
|
106
132
|
- test/configs/real.rb
|
|
107
133
|
- test/configs/running_load/running_load.god
|
|
@@ -126,6 +152,7 @@ files:
|
|
|
126
152
|
- test/test_event_handler.rb
|
|
127
153
|
- test/test_god.rb
|
|
128
154
|
- test/test_handlers_kqueue_handler.rb
|
|
155
|
+
- test/test_jabber.rb
|
|
129
156
|
- test/test_logger.rb
|
|
130
157
|
- test/test_metric.rb
|
|
131
158
|
- test/test_process.rb
|
|
@@ -138,12 +165,13 @@ files:
|
|
|
138
165
|
- test/test_timeline.rb
|
|
139
166
|
- test/test_trigger.rb
|
|
140
167
|
- test/test_watch.rb
|
|
141
|
-
|
|
168
|
+
- test/test_webhook.rb
|
|
169
|
+
has_rdoc: false
|
|
142
170
|
homepage: http://god.rubyforge.org/
|
|
171
|
+
licenses:
|
|
143
172
|
post_install_message:
|
|
144
173
|
rdoc_options:
|
|
145
|
-
- --
|
|
146
|
-
- README.txt
|
|
174
|
+
- --charset=UTF-8
|
|
147
175
|
require_paths:
|
|
148
176
|
- lib
|
|
149
177
|
- ext
|
|
@@ -161,33 +189,50 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
189
|
version:
|
|
162
190
|
requirements: []
|
|
163
191
|
|
|
164
|
-
rubyforge_project:
|
|
165
|
-
rubygems_version: 1.
|
|
192
|
+
rubyforge_project:
|
|
193
|
+
rubygems_version: 1.3.5
|
|
166
194
|
signing_key:
|
|
167
|
-
specification_version:
|
|
195
|
+
specification_version: 3
|
|
168
196
|
summary: Like monit, only awesome
|
|
169
197
|
test_files:
|
|
170
|
-
- test/
|
|
171
|
-
- test/
|
|
172
|
-
- test/
|
|
173
|
-
- test/
|
|
174
|
-
- test/
|
|
198
|
+
- test/configs/child_events/simple_server.rb
|
|
199
|
+
- test/configs/child_polls/simple_server.rb
|
|
200
|
+
- test/configs/complex/simple_server.rb
|
|
201
|
+
- test/configs/contact/simple_server.rb
|
|
202
|
+
- test/configs/daemon_events/simple_server.rb
|
|
203
|
+
- test/configs/daemon_events/simple_server_stop.rb
|
|
204
|
+
- test/configs/daemon_polls/simple_server.rb
|
|
205
|
+
- test/configs/degrading_lambda/tcp_server.rb
|
|
206
|
+
- test/configs/real.rb
|
|
207
|
+
- test/configs/stress/simple_server.rb
|
|
208
|
+
- test/configs/test.rb
|
|
209
|
+
- test/helper.rb
|
|
210
|
+
- test/suite.rb
|
|
211
|
+
- test/test_behavior.rb
|
|
212
|
+
- test/test_campfire.rb
|
|
175
213
|
- test/test_condition.rb
|
|
176
|
-
- test/test_timeline.rb
|
|
177
|
-
- test/test_logger.rb
|
|
178
|
-
- test/test_conditions_process_running.rb
|
|
179
|
-
- test/test_handlers_kqueue_handler.rb
|
|
180
214
|
- test/test_conditions_disk_usage.rb
|
|
181
|
-
- test/
|
|
182
|
-
- test/
|
|
215
|
+
- test/test_conditions_http_response_code.rb
|
|
216
|
+
- test/test_conditions_process_running.rb
|
|
217
|
+
- test/test_conditions_tries.rb
|
|
218
|
+
- test/test_contact.rb
|
|
183
219
|
- test/test_dependency_graph.rb
|
|
220
|
+
- test/test_driver.rb
|
|
221
|
+
- test/test_email.rb
|
|
222
|
+
- test/test_event_handler.rb
|
|
223
|
+
- test/test_god.rb
|
|
224
|
+
- test/test_handlers_kqueue_handler.rb
|
|
225
|
+
- test/test_jabber.rb
|
|
226
|
+
- test/test_logger.rb
|
|
184
227
|
- test/test_metric.rb
|
|
228
|
+
- test/test_process.rb
|
|
185
229
|
- test/test_registry.rb
|
|
186
|
-
- test/test_behavior.rb
|
|
187
230
|
- test/test_socket.rb
|
|
188
231
|
- test/test_sugar.rb
|
|
189
|
-
- test/
|
|
190
|
-
- test/test_conditions_http_response_code.rb
|
|
191
|
-
- test/test_god.rb
|
|
232
|
+
- test/test_system_portable_poller.rb
|
|
192
233
|
- test/test_system_process.rb
|
|
193
|
-
- test/
|
|
234
|
+
- test/test_task.rb
|
|
235
|
+
- test/test_timeline.rb
|
|
236
|
+
- test/test_trigger.rb
|
|
237
|
+
- test/test_watch.rb
|
|
238
|
+
- test/test_webhook.rb
|
data/Manifest.txt
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
History.txt
|
|
2
|
-
Manifest.txt
|
|
3
|
-
README.txt
|
|
4
|
-
Rakefile
|
|
5
|
-
bin/god
|
|
6
|
-
examples/events.god
|
|
7
|
-
examples/gravatar.god
|
|
8
|
-
examples/single.god
|
|
9
|
-
ext/god/extconf.rb
|
|
10
|
-
ext/god/kqueue_handler.c
|
|
11
|
-
ext/god/netlink_handler.c
|
|
12
|
-
init/god
|
|
13
|
-
lib/god.rb
|
|
14
|
-
lib/god/behavior.rb
|
|
15
|
-
lib/god/behaviors/clean_pid_file.rb
|
|
16
|
-
lib/god/behaviors/clean_unix_socket.rb
|
|
17
|
-
lib/god/behaviors/notify_when_flapping.rb
|
|
18
|
-
lib/god/cli/command.rb
|
|
19
|
-
lib/god/cli/run.rb
|
|
20
|
-
lib/god/cli/version.rb
|
|
21
|
-
lib/god/condition.rb
|
|
22
|
-
lib/god/conditions/always.rb
|
|
23
|
-
lib/god/conditions/complex.rb
|
|
24
|
-
lib/god/conditions/cpu_usage.rb
|
|
25
|
-
lib/god/conditions/degrading_lambda.rb
|
|
26
|
-
lib/god/conditions/disk_usage.rb
|
|
27
|
-
lib/god/conditions/file_mtime.rb
|
|
28
|
-
lib/god/conditions/flapping.rb
|
|
29
|
-
lib/god/conditions/http_response_code.rb
|
|
30
|
-
lib/god/conditions/lambda.rb
|
|
31
|
-
lib/god/conditions/memory_usage.rb
|
|
32
|
-
lib/god/conditions/process_exits.rb
|
|
33
|
-
lib/god/conditions/process_running.rb
|
|
34
|
-
lib/god/conditions/tries.rb
|
|
35
|
-
lib/god/configurable.rb
|
|
36
|
-
lib/god/contact.rb
|
|
37
|
-
lib/god/contacts/campfire.rb
|
|
38
|
-
lib/god/contacts/email.rb
|
|
39
|
-
lib/god/contacts/jabber.rb
|
|
40
|
-
lib/god/contacts/twitter.rb
|
|
41
|
-
lib/god/contacts/webhook.rb
|
|
42
|
-
lib/god/dependency_graph.rb
|
|
43
|
-
lib/god/diagnostics.rb
|
|
44
|
-
lib/god/driver.rb
|
|
45
|
-
lib/god/errors.rb
|
|
46
|
-
lib/god/event_handler.rb
|
|
47
|
-
lib/god/event_handlers/dummy_handler.rb
|
|
48
|
-
lib/god/event_handlers/kqueue_handler.rb
|
|
49
|
-
lib/god/event_handlers/netlink_handler.rb
|
|
50
|
-
lib/god/logger.rb
|
|
51
|
-
lib/god/metric.rb
|
|
52
|
-
lib/god/process.rb
|
|
53
|
-
lib/god/registry.rb
|
|
54
|
-
lib/god/simple_logger.rb
|
|
55
|
-
lib/god/socket.rb
|
|
56
|
-
lib/god/sugar.rb
|
|
57
|
-
lib/god/system/portable_poller.rb
|
|
58
|
-
lib/god/system/process.rb
|
|
59
|
-
lib/god/system/slash_proc_poller.rb
|
|
60
|
-
lib/god/task.rb
|
|
61
|
-
lib/god/timeline.rb
|
|
62
|
-
lib/god/trigger.rb
|
|
63
|
-
lib/god/watch.rb
|
|
64
|
-
test/configs/child_events/child_events.god
|
|
65
|
-
test/configs/child_events/simple_server.rb
|
|
66
|
-
test/configs/child_polls/child_polls.god
|
|
67
|
-
test/configs/child_polls/simple_server.rb
|
|
68
|
-
test/configs/complex/complex.god
|
|
69
|
-
test/configs/complex/simple_server.rb
|
|
70
|
-
test/configs/contact/contact.god
|
|
71
|
-
test/configs/contact/simple_server.rb
|
|
72
|
-
test/configs/daemon_events/daemon_events.god
|
|
73
|
-
test/configs/daemon_events/simple_server.rb
|
|
74
|
-
test/configs/daemon_events/simple_server_stop.rb
|
|
75
|
-
test/configs/daemon_polls/daemon_polls.god
|
|
76
|
-
test/configs/daemon_polls/simple_server.rb
|
|
77
|
-
test/configs/degrading_lambda/degrading_lambda.god
|
|
78
|
-
test/configs/degrading_lambda/tcp_server.rb
|
|
79
|
-
test/configs/matias/matias.god
|
|
80
|
-
test/configs/real.rb
|
|
81
|
-
test/configs/running_load/running_load.god
|
|
82
|
-
test/configs/stress/simple_server.rb
|
|
83
|
-
test/configs/stress/stress.god
|
|
84
|
-
test/configs/task/logs/.placeholder
|
|
85
|
-
test/configs/task/task.god
|
|
86
|
-
test/configs/test.rb
|
|
87
|
-
test/helper.rb
|
|
88
|
-
test/suite.rb
|
|
89
|
-
test/test_behavior.rb
|
|
90
|
-
test/test_campfire.rb
|
|
91
|
-
test/test_condition.rb
|
|
92
|
-
test/test_conditions_disk_usage.rb
|
|
93
|
-
test/test_conditions_http_response_code.rb
|
|
94
|
-
test/test_conditions_process_running.rb
|
|
95
|
-
test/test_conditions_tries.rb
|
|
96
|
-
test/test_contact.rb
|
|
97
|
-
test/test_dependency_graph.rb
|
|
98
|
-
test/test_driver.rb
|
|
99
|
-
test/test_email.rb
|
|
100
|
-
test/test_event_handler.rb
|
|
101
|
-
test/test_god.rb
|
|
102
|
-
test/test_handlers_kqueue_handler.rb
|
|
103
|
-
test/test_logger.rb
|
|
104
|
-
test/test_metric.rb
|
|
105
|
-
test/test_process.rb
|
|
106
|
-
test/test_registry.rb
|
|
107
|
-
test/test_socket.rb
|
|
108
|
-
test/test_sugar.rb
|
|
109
|
-
test/test_system_portable_poller.rb
|
|
110
|
-
test/test_system_process.rb
|
|
111
|
-
test/test_task.rb
|
|
112
|
-
test/test_timeline.rb
|
|
113
|
-
test/test_trigger.rb
|
|
114
|
-
test/test_watch.rb
|