firenxis-god 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/Announce.txt +135 -0
  2. data/History.txt +393 -0
  3. data/README.txt +59 -0
  4. data/Rakefile +142 -0
  5. data/bin/god +132 -0
  6. data/ext/god/.gitignore +5 -0
  7. data/ext/god/extconf.rb +55 -0
  8. data/ext/god/kqueue_handler.c +125 -0
  9. data/ext/god/netlink_handler.c +168 -0
  10. data/god.gemspec +164 -0
  11. data/lib/god.rb +701 -0
  12. data/lib/god/behavior.rb +52 -0
  13. data/lib/god/behaviors/clean_pid_file.rb +21 -0
  14. data/lib/god/behaviors/clean_unix_socket.rb +21 -0
  15. data/lib/god/behaviors/notify_when_flapping.rb +51 -0
  16. data/lib/god/cli/command.rb +256 -0
  17. data/lib/god/cli/run.rb +172 -0
  18. data/lib/god/cli/version.rb +23 -0
  19. data/lib/god/compat19.rb +36 -0
  20. data/lib/god/condition.rb +96 -0
  21. data/lib/god/conditions/always.rb +23 -0
  22. data/lib/god/conditions/complex.rb +86 -0
  23. data/lib/god/conditions/cpu_usage.rb +80 -0
  24. data/lib/god/conditions/degrading_lambda.rb +52 -0
  25. data/lib/god/conditions/disk_usage.rb +32 -0
  26. data/lib/god/conditions/file_mtime.rb +28 -0
  27. data/lib/god/conditions/flapping.rb +128 -0
  28. data/lib/god/conditions/http_response_code.rb +168 -0
  29. data/lib/god/conditions/lambda.rb +25 -0
  30. data/lib/god/conditions/memory_usage.rb +82 -0
  31. data/lib/god/conditions/process_exits.rb +72 -0
  32. data/lib/god/conditions/process_running.rb +74 -0
  33. data/lib/god/conditions/tries.rb +44 -0
  34. data/lib/god/configurable.rb +57 -0
  35. data/lib/god/contact.rb +114 -0
  36. data/lib/god/contacts/campfire.rb +121 -0
  37. data/lib/god/contacts/email.rb +136 -0
  38. data/lib/god/contacts/jabber.rb +75 -0
  39. data/lib/god/contacts/prowl.rb +57 -0
  40. data/lib/god/contacts/scout.rb +55 -0
  41. data/lib/god/contacts/twitter.rb +51 -0
  42. data/lib/god/contacts/webhook.rb +73 -0
  43. data/lib/god/dependency_graph.rb +41 -0
  44. data/lib/god/diagnostics.rb +37 -0
  45. data/lib/god/driver.rb +206 -0
  46. data/lib/god/errors.rb +24 -0
  47. data/lib/god/event_handler.rb +108 -0
  48. data/lib/god/event_handlers/dummy_handler.rb +13 -0
  49. data/lib/god/event_handlers/kqueue_handler.rb +17 -0
  50. data/lib/god/event_handlers/netlink_handler.rb +13 -0
  51. data/lib/god/logger.rb +109 -0
  52. data/lib/god/metric.rb +59 -0
  53. data/lib/god/process.rb +363 -0
  54. data/lib/god/registry.rb +32 -0
  55. data/lib/god/simple_logger.rb +59 -0
  56. data/lib/god/socket.rb +107 -0
  57. data/lib/god/sugar.rb +47 -0
  58. data/lib/god/sys_logger.rb +45 -0
  59. data/lib/god/system/portable_poller.rb +42 -0
  60. data/lib/god/system/process.rb +50 -0
  61. data/lib/god/system/slash_proc_poller.rb +92 -0
  62. data/lib/god/task.rb +503 -0
  63. data/lib/god/timeline.rb +25 -0
  64. data/lib/god/trigger.rb +43 -0
  65. data/lib/god/watch.rb +188 -0
  66. data/test/configs/child_events/child_events.god +44 -0
  67. data/test/configs/child_events/simple_server.rb +3 -0
  68. data/test/configs/child_polls/child_polls.god +37 -0
  69. data/test/configs/child_polls/simple_server.rb +12 -0
  70. data/test/configs/complex/complex.god +59 -0
  71. data/test/configs/complex/simple_server.rb +3 -0
  72. data/test/configs/contact/contact.god +108 -0
  73. data/test/configs/contact/simple_server.rb +3 -0
  74. data/test/configs/daemon_events/daemon_events.god +37 -0
  75. data/test/configs/daemon_events/simple_server.rb +8 -0
  76. data/test/configs/daemon_events/simple_server_stop.rb +11 -0
  77. data/test/configs/daemon_polls/daemon_polls.god +17 -0
  78. data/test/configs/daemon_polls/simple_server.rb +6 -0
  79. data/test/configs/degrading_lambda/degrading_lambda.god +31 -0
  80. data/test/configs/degrading_lambda/tcp_server.rb +15 -0
  81. data/test/configs/lifecycle/lifecycle.god +25 -0
  82. data/test/configs/matias/matias.god +50 -0
  83. data/test/configs/real.rb +59 -0
  84. data/test/configs/running_load/running_load.god +16 -0
  85. data/test/configs/stop_options/simple_server.rb +12 -0
  86. data/test/configs/stop_options/stop_options.god +39 -0
  87. data/test/configs/stress/simple_server.rb +3 -0
  88. data/test/configs/stress/stress.god +15 -0
  89. data/test/configs/task/logs/.placeholder +0 -0
  90. data/test/configs/task/task.god +26 -0
  91. data/test/configs/test.rb +61 -0
  92. data/test/helper.rb +141 -0
  93. data/test/suite.rb +6 -0
  94. data/test/test_behavior.rb +18 -0
  95. data/test/test_campfire.rb +23 -0
  96. data/test/test_condition.rb +50 -0
  97. data/test/test_conditions_disk_usage.rb +50 -0
  98. data/test/test_conditions_http_response_code.rb +109 -0
  99. data/test/test_conditions_process_running.rb +40 -0
  100. data/test/test_conditions_tries.rb +67 -0
  101. data/test/test_contact.rb +109 -0
  102. data/test/test_dependency_graph.rb +62 -0
  103. data/test/test_driver.rb +11 -0
  104. data/test/test_email.rb +34 -0
  105. data/test/test_event_handler.rb +80 -0
  106. data/test/test_god.rb +570 -0
  107. data/test/test_handlers_kqueue_handler.rb +16 -0
  108. data/test/test_jabber.rb +29 -0
  109. data/test/test_logger.rb +55 -0
  110. data/test/test_metric.rb +72 -0
  111. data/test/test_process.rb +247 -0
  112. data/test/test_prowl.rb +15 -0
  113. data/test/test_registry.rb +15 -0
  114. data/test/test_socket.rb +34 -0
  115. data/test/test_sugar.rb +42 -0
  116. data/test/test_system_portable_poller.rb +17 -0
  117. data/test/test_system_process.rb +30 -0
  118. data/test/test_task.rb +246 -0
  119. data/test/test_timeline.rb +37 -0
  120. data/test/test_trigger.rb +59 -0
  121. data/test/test_watch.rb +279 -0
  122. data/test/test_webhook.rb +15 -0
  123. metadata +362 -0
@@ -0,0 +1,279 @@
1
+ require File.dirname(__FILE__) + '/helper'
2
+
3
+ class TestWatch < Test::Unit::TestCase
4
+ def setup
5
+ God.internal_init
6
+ @watch = Watch.new
7
+ @watch.name = 'foo'
8
+ @watch.start = lambda { }
9
+ @watch.stop = lambda { }
10
+ @watch.prepare
11
+ end
12
+
13
+ # new
14
+
15
+ def test_new_should_have_no_behaviors
16
+ assert_equal [], @watch.behaviors
17
+ end
18
+
19
+ def test_new_should_have_no_metrics
20
+ Watch::VALID_STATES.each do |state|
21
+ assert_equal [], @watch.metrics[state]
22
+ end
23
+ end
24
+
25
+ def test_new_should_have_standard_attributes
26
+ assert_nothing_raised do
27
+ @watch.name = 'foo'
28
+ @watch.start = 'start'
29
+ @watch.stop = 'stop'
30
+ @watch.restart = 'restart'
31
+ @watch.interval = 30
32
+ @watch.grace = 5
33
+ end
34
+ end
35
+
36
+ def test_new_should_have_unmonitored_state
37
+ assert_equal :unmonitored, @watch.state
38
+ end
39
+
40
+ # valid?
41
+
42
+ def test_valid?
43
+ God::Process.any_instance.expects(:valid?)
44
+ @watch.valid?
45
+ end
46
+
47
+ # behavior
48
+
49
+ def test_behavior_should_record_behavior
50
+ beh = nil
51
+ @watch.behavior(:fake_behavior) { |b| beh = b }
52
+ assert_equal 1, @watch.behaviors.size
53
+ assert_equal beh, @watch.behaviors.first
54
+ end
55
+
56
+ def test_invalid_behavior_should_abort
57
+ assert_abort do
58
+ @watch.behavior(:invalid)
59
+ end
60
+ end
61
+
62
+ # transition
63
+
64
+ def test_transition_should_abort_on_invalid_start_state
65
+ assert_abort do
66
+ @watch.transition(:foo, :bar)
67
+ end
68
+ end
69
+
70
+ def test_transition_should_accept_all_valid_start_states
71
+ assert_nothing_raised do
72
+ Watch::VALID_STATES.each do |state|
73
+ @watch.transition(state, :bar) { }
74
+ end
75
+ end
76
+ end
77
+
78
+ def test_transition_should_create_and_record_a_metric_for_the_given_start_state
79
+ @watch.transition(:init, :start) { }
80
+ assert_equal 1, @watch.metrics[:init].size
81
+ end
82
+
83
+ # lifecycle
84
+
85
+ def test_lifecycle_should_create_and_record_a_metric_for_nil_start_state
86
+ @watch.lifecycle { }
87
+ assert_equal 1, @watch.metrics[nil].size
88
+ end
89
+
90
+ # start_if
91
+
92
+ def test_start_if_should_place_a_metric_on_up_state
93
+ @watch.start_if { }
94
+ assert_equal 1, @watch.metrics[:up].size
95
+ end
96
+
97
+ # restart_if
98
+
99
+ def test_restart_if_should_place_a_metric_on_up_state
100
+ @watch.restart_if { }
101
+ assert_equal 1, @watch.metrics[:up].size
102
+ end
103
+
104
+ # monitor
105
+
106
+ def test_monitor_should_move_to_init_if_available
107
+ @watch.instance_eval do
108
+ transition(:init, :up) { }
109
+ end
110
+ @watch.expects(:move).with(:init)
111
+ @watch.monitor
112
+ end
113
+
114
+ def test_monitor_should_move_to_up_if_no_init_available
115
+ @watch.expects(:move).with(:up)
116
+ @watch.monitor
117
+ end
118
+
119
+ # unmonitor
120
+
121
+ def test_unmonitor_should_move_to_nil
122
+ @watch.expects(:move).with(:unmonitored)
123
+ @watch.unmonitor
124
+ end
125
+
126
+ # move
127
+
128
+ def test_move_should_not_clean_up_if_from_state_is_nil
129
+ @watch.driver.stubs(:in_driver_context?).returns(true)
130
+ @watch.driver.expects(:message).never
131
+
132
+ metric = nil
133
+
134
+ @watch.instance_eval do
135
+ transition(:init, :up) do |on|
136
+ metric = on
137
+ on.condition(:process_running) do |c|
138
+ c.running = true
139
+ c.interval = 10
140
+ end
141
+ end
142
+ end
143
+
144
+ metric.expects(:disable).never
145
+
146
+ @watch.move(:init)
147
+ end
148
+
149
+ def test_move_should_clean_up_from_state_if_not_nil
150
+ @watch.driver.stubs(:in_driver_context?).returns(true)
151
+ @watch.driver.expects(:message).never
152
+
153
+ metric = nil
154
+
155
+ @watch.instance_eval do
156
+ transition(:init, :up) do |on|
157
+ metric = on
158
+ on.condition(:process_running) do |c|
159
+ c.running = true
160
+ c.interval = 10
161
+ end
162
+ end
163
+ end
164
+
165
+ @watch.move(:init)
166
+
167
+ metric.expects(:disable)
168
+
169
+ @watch.move(:up)
170
+ end
171
+
172
+ def test_move_should_call_action
173
+ @watch.driver.stubs(:in_driver_context?).returns(true)
174
+ @watch.driver.expects(:message).never
175
+
176
+ @watch.expects(:action).with(:start)
177
+
178
+ @watch.move(:start)
179
+ end
180
+
181
+ def test_move_should_move_to_up_state_if_no_start_or_restart_metric
182
+ @watch.driver.stubs(:in_driver_context?).returns(true)
183
+ @watch.driver.expects(:message).never
184
+
185
+ [:start, :restart].each do |state|
186
+ @watch.expects(:action)
187
+ @watch.move(state)
188
+ assert_equal :up, @watch.state
189
+ end
190
+ end
191
+
192
+ def test_move_should_enable_destination_metric
193
+ @watch.driver.stubs(:in_driver_context?).returns(true)
194
+ @watch.driver.expects(:message).never
195
+
196
+ metric = nil
197
+
198
+ @watch.instance_eval do
199
+ transition(:init, :up) do |on|
200
+ metric = on
201
+ on.condition(:process_running) do |c|
202
+ c.running = true
203
+ c.interval = 10
204
+ end
205
+ end
206
+ end
207
+
208
+ metric.expects(:enable)
209
+
210
+ @watch.move(:init)
211
+ end
212
+
213
+ # action
214
+
215
+ def test_action_should_pass_start_and_stop_actions_to_call_action
216
+ @watch.driver.stubs(:in_driver_context?).returns(true)
217
+ @watch.driver.expects(:message).never
218
+
219
+ c = Conditions::FakePollCondition.new
220
+ [:start, :stop].each do |cmd|
221
+ @watch.expects(:call_action).with(c, cmd)
222
+ @watch.action(cmd, c)
223
+ end
224
+ end
225
+
226
+ def test_action_should_do_stop_then_start_if_no_restart_command
227
+ @watch.driver.stubs(:in_driver_context?).returns(true)
228
+ @watch.driver.expects(:message).never
229
+
230
+ c = Conditions::FakePollCondition.new
231
+ @watch.expects(:call_action).with(c, :stop)
232
+ @watch.expects(:call_action).with(c, :start)
233
+ @watch.action(:restart, c)
234
+ end
235
+
236
+ def test_action_should_restart_to_call_action_if_present
237
+ @watch.driver.stubs(:in_driver_context?).returns(true)
238
+ @watch.driver.expects(:message).never
239
+
240
+ @watch.restart = lambda { }
241
+ c = Conditions::FakePollCondition.new
242
+ @watch.expects(:call_action).with(c, :restart)
243
+ @watch.action(:restart, c)
244
+ end
245
+
246
+ # call_action
247
+
248
+ def test_call_action
249
+ c = Conditions::FakePollCondition.new
250
+ God::Process.any_instance.expects(:call_action).with(:start)
251
+ @watch.call_action(c, :start)
252
+ end
253
+
254
+ def test_call_action_should_call_before_start_when_behavior_has_that
255
+ @watch.behavior(:fake_behavior)
256
+ c = Conditions::FakePollCondition.new
257
+ God::Process.any_instance.expects(:call_action).with(:start)
258
+ Behaviors::FakeBehavior.any_instance.expects(:before_start)
259
+ @watch.call_action(c, :start)
260
+ end
261
+
262
+ def test_call_action_should_call_after_start_when_behavior_has_that
263
+ @watch.behavior(:fake_behavior)
264
+ c = Conditions::FakePollCondition.new
265
+ God::Process.any_instance.expects(:call_action).with(:start)
266
+ Behaviors::FakeBehavior.any_instance.expects(:after_start)
267
+ @watch.call_action(c, :start)
268
+ end
269
+
270
+ # canonical_hash_form
271
+
272
+ def test_canonical_hash_form_should_convert_symbol_to_hash
273
+ assert_equal({true => :foo}, @watch.canonical_hash_form(:foo))
274
+ end
275
+
276
+ def test_canonical_hash_form_should_convert_hash_to_hash
277
+ assert_equal({true => :foo}, @watch.canonical_hash_form(true => :foo))
278
+ end
279
+ end
@@ -0,0 +1,15 @@
1
+ require File.dirname(__FILE__) + '/helper'
2
+
3
+ class TestWebhook < Test::Unit::TestCase
4
+ def setup
5
+ @webhook = God::Contacts::Webhook.new
6
+ end
7
+
8
+ def test_notify
9
+ @webhook.url = 'http://example.com/switch'
10
+ Net::HTTP.any_instance.expects(:request).returns(Net::HTTPSuccess.new('a', 'b', 'c'))
11
+
12
+ @webhook.notify('msg', Time.now, 'prio', 'cat', 'host')
13
+ assert_equal "sent webhook to http://example.com/switch", @webhook.info
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,362 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: firenxis-god
3
+ version: !ruby/object:Gem::Version
4
+ hash: 51
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 11
9
+ - 0
10
+ version: 0.11.0
11
+ platform: ruby
12
+ authors:
13
+ - Tom Preston-Werner
14
+ - Kevin Clark
15
+ - Eric Lindvall
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2010-07-19 00:00:00 -04:00
21
+ default_executable: god
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: twitter
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 29
32
+ segments:
33
+ - 0
34
+ - 3
35
+ - 7
36
+ version: 0.3.7
37
+ type: :development
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
40
+ name: prowly
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 21
48
+ segments:
49
+ - 0
50
+ - 2
51
+ - 1
52
+ version: 0.2.1
53
+ type: :development
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
56
+ name: xmpp4r
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 15
64
+ segments:
65
+ - 0
66
+ - 4
67
+ - 0
68
+ version: 0.4.0
69
+ type: :development
70
+ version_requirements: *id003
71
+ - !ruby/object:Gem::Dependency
72
+ name: dike
73
+ prerelease: false
74
+ requirement: &id004 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ hash: 25
80
+ segments:
81
+ - 0
82
+ - 0
83
+ - 3
84
+ version: 0.0.3
85
+ type: :development
86
+ version_requirements: *id004
87
+ - !ruby/object:Gem::Dependency
88
+ name: snapshot
89
+ prerelease: false
90
+ requirement: &id005 !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ hash: 23
96
+ segments:
97
+ - 1
98
+ - 0
99
+ - 0
100
+ version: 1.0.0
101
+ - - <
102
+ - !ruby/object:Gem::Version
103
+ hash: 15
104
+ segments:
105
+ - 2
106
+ - 0
107
+ - 0
108
+ version: 2.0.0
109
+ type: :development
110
+ version_requirements: *id005
111
+ - !ruby/object:Gem::Dependency
112
+ name: rcov
113
+ prerelease: false
114
+ requirement: &id006 !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 43
120
+ segments:
121
+ - 0
122
+ - 9
123
+ - 8
124
+ version: 0.9.8
125
+ type: :development
126
+ version_requirements: *id006
127
+ - !ruby/object:Gem::Dependency
128
+ name: daemons
129
+ prerelease: false
130
+ requirement: &id007 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 1
138
+ - 0
139
+ - 10
140
+ version: 1.0.10
141
+ - - <
142
+ - !ruby/object:Gem::Version
143
+ hash: 15
144
+ segments:
145
+ - 2
146
+ - 0
147
+ - 0
148
+ version: 2.0.0
149
+ type: :development
150
+ version_requirements: *id007
151
+ - !ruby/object:Gem::Dependency
152
+ name: mocha
153
+ prerelease: false
154
+ requirement: &id008 !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ hash: 57
160
+ segments:
161
+ - 0
162
+ - 9
163
+ - 1
164
+ version: 0.9.1
165
+ type: :development
166
+ version_requirements: *id008
167
+ description: An easy to configure, easy to extend monitoring framework written in Ruby.
168
+ email: god-rb@googlegroups.com
169
+ executables:
170
+ - god
171
+ extensions:
172
+ - ext/god/extconf.rb
173
+ extra_rdoc_files:
174
+ - README.txt
175
+ files:
176
+ - Announce.txt
177
+ - History.txt
178
+ - README.txt
179
+ - Rakefile
180
+ - bin/god
181
+ - ext/god/.gitignore
182
+ - ext/god/extconf.rb
183
+ - ext/god/kqueue_handler.c
184
+ - ext/god/netlink_handler.c
185
+ - god.gemspec
186
+ - lib/god.rb
187
+ - lib/god/behavior.rb
188
+ - lib/god/behaviors/clean_pid_file.rb
189
+ - lib/god/behaviors/clean_unix_socket.rb
190
+ - lib/god/behaviors/notify_when_flapping.rb
191
+ - lib/god/cli/command.rb
192
+ - lib/god/cli/run.rb
193
+ - lib/god/cli/version.rb
194
+ - lib/god/compat19.rb
195
+ - lib/god/condition.rb
196
+ - lib/god/conditions/always.rb
197
+ - lib/god/conditions/complex.rb
198
+ - lib/god/conditions/cpu_usage.rb
199
+ - lib/god/conditions/degrading_lambda.rb
200
+ - lib/god/conditions/disk_usage.rb
201
+ - lib/god/conditions/file_mtime.rb
202
+ - lib/god/conditions/flapping.rb
203
+ - lib/god/conditions/http_response_code.rb
204
+ - lib/god/conditions/lambda.rb
205
+ - lib/god/conditions/memory_usage.rb
206
+ - lib/god/conditions/process_exits.rb
207
+ - lib/god/conditions/process_running.rb
208
+ - lib/god/conditions/tries.rb
209
+ - lib/god/configurable.rb
210
+ - lib/god/contact.rb
211
+ - lib/god/contacts/campfire.rb
212
+ - lib/god/contacts/email.rb
213
+ - lib/god/contacts/jabber.rb
214
+ - lib/god/contacts/prowl.rb
215
+ - lib/god/contacts/scout.rb
216
+ - lib/god/contacts/twitter.rb
217
+ - lib/god/contacts/webhook.rb
218
+ - lib/god/dependency_graph.rb
219
+ - lib/god/diagnostics.rb
220
+ - lib/god/driver.rb
221
+ - lib/god/errors.rb
222
+ - lib/god/event_handler.rb
223
+ - lib/god/event_handlers/dummy_handler.rb
224
+ - lib/god/event_handlers/kqueue_handler.rb
225
+ - lib/god/event_handlers/netlink_handler.rb
226
+ - lib/god/logger.rb
227
+ - lib/god/metric.rb
228
+ - lib/god/process.rb
229
+ - lib/god/registry.rb
230
+ - lib/god/simple_logger.rb
231
+ - lib/god/socket.rb
232
+ - lib/god/sugar.rb
233
+ - lib/god/sys_logger.rb
234
+ - lib/god/system/portable_poller.rb
235
+ - lib/god/system/process.rb
236
+ - lib/god/system/slash_proc_poller.rb
237
+ - lib/god/task.rb
238
+ - lib/god/timeline.rb
239
+ - lib/god/trigger.rb
240
+ - lib/god/watch.rb
241
+ - test/configs/child_events/child_events.god
242
+ - test/configs/child_events/simple_server.rb
243
+ - test/configs/child_polls/child_polls.god
244
+ - test/configs/child_polls/simple_server.rb
245
+ - test/configs/complex/complex.god
246
+ - test/configs/complex/simple_server.rb
247
+ - test/configs/contact/contact.god
248
+ - test/configs/contact/simple_server.rb
249
+ - test/configs/daemon_events/daemon_events.god
250
+ - test/configs/daemon_events/simple_server.rb
251
+ - test/configs/daemon_events/simple_server_stop.rb
252
+ - test/configs/daemon_polls/daemon_polls.god
253
+ - test/configs/daemon_polls/simple_server.rb
254
+ - test/configs/degrading_lambda/degrading_lambda.god
255
+ - test/configs/degrading_lambda/tcp_server.rb
256
+ - test/configs/lifecycle/lifecycle.god
257
+ - test/configs/matias/matias.god
258
+ - test/configs/real.rb
259
+ - test/configs/running_load/running_load.god
260
+ - test/configs/stop_options/simple_server.rb
261
+ - test/configs/stop_options/stop_options.god
262
+ - test/configs/stress/simple_server.rb
263
+ - test/configs/stress/stress.god
264
+ - test/configs/task/logs/.placeholder
265
+ - test/configs/task/task.god
266
+ - test/configs/test.rb
267
+ - test/helper.rb
268
+ - test/suite.rb
269
+ - test/test_behavior.rb
270
+ - test/test_campfire.rb
271
+ - test/test_condition.rb
272
+ - test/test_conditions_disk_usage.rb
273
+ - test/test_conditions_http_response_code.rb
274
+ - test/test_conditions_process_running.rb
275
+ - test/test_conditions_tries.rb
276
+ - test/test_contact.rb
277
+ - test/test_dependency_graph.rb
278
+ - test/test_driver.rb
279
+ - test/test_email.rb
280
+ - test/test_event_handler.rb
281
+ - test/test_god.rb
282
+ - test/test_handlers_kqueue_handler.rb
283
+ - test/test_jabber.rb
284
+ - test/test_logger.rb
285
+ - test/test_metric.rb
286
+ - test/test_process.rb
287
+ - test/test_prowl.rb
288
+ - test/test_registry.rb
289
+ - test/test_socket.rb
290
+ - test/test_sugar.rb
291
+ - test/test_system_portable_poller.rb
292
+ - test/test_system_process.rb
293
+ - test/test_task.rb
294
+ - test/test_timeline.rb
295
+ - test/test_trigger.rb
296
+ - test/test_watch.rb
297
+ - test/test_webhook.rb
298
+ has_rdoc: true
299
+ homepage: http://god.rubyforge.org/
300
+ licenses: []
301
+
302
+ post_install_message:
303
+ rdoc_options:
304
+ - --charset=UTF-8
305
+ require_paths:
306
+ - lib
307
+ - ext
308
+ required_ruby_version: !ruby/object:Gem::Requirement
309
+ none: false
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ hash: 3
314
+ segments:
315
+ - 0
316
+ version: "0"
317
+ required_rubygems_version: !ruby/object:Gem::Requirement
318
+ none: false
319
+ requirements:
320
+ - - ">="
321
+ - !ruby/object:Gem::Version
322
+ hash: 3
323
+ segments:
324
+ - 0
325
+ version: "0"
326
+ requirements: []
327
+
328
+ rubyforge_project: god
329
+ rubygems_version: 1.3.7
330
+ signing_key:
331
+ specification_version: 2
332
+ summary: Process monitoring framework.
333
+ test_files:
334
+ - test/test_behavior.rb
335
+ - test/test_campfire.rb
336
+ - test/test_condition.rb
337
+ - test/test_conditions_disk_usage.rb
338
+ - test/test_conditions_http_response_code.rb
339
+ - test/test_conditions_process_running.rb
340
+ - test/test_conditions_tries.rb
341
+ - test/test_contact.rb
342
+ - test/test_dependency_graph.rb
343
+ - test/test_driver.rb
344
+ - test/test_email.rb
345
+ - test/test_event_handler.rb
346
+ - test/test_god.rb
347
+ - test/test_handlers_kqueue_handler.rb
348
+ - test/test_jabber.rb
349
+ - test/test_logger.rb
350
+ - test/test_metric.rb
351
+ - test/test_process.rb
352
+ - test/test_prowl.rb
353
+ - test/test_registry.rb
354
+ - test/test_socket.rb
355
+ - test/test_sugar.rb
356
+ - test/test_system_portable_poller.rb
357
+ - test/test_system_process.rb
358
+ - test/test_task.rb
359
+ - test/test_timeline.rb
360
+ - test/test_trigger.rb
361
+ - test/test_watch.rb
362
+ - test/test_webhook.rb