mojombo-god 0.7.12 → 0.7.13
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile +1 -1
- data/lib/god.rb +2 -2
- data/test/test_webhook.rb +17 -0
- metadata +33 -20
data/History.txt
CHANGED
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.13'
|
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"
|
@@ -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: mojombo-god
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-05-04 00:00:00 -07:00
|
13
13
|
default_executable: god
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.8.0
|
24
|
+
version:
|
16
25
|
description: God is an easy to configure, easy to extend monitoring framework written in Ruby.
|
17
26
|
email: tom@rubyisawesome.com
|
18
27
|
executables:
|
@@ -138,6 +147,7 @@ files:
|
|
138
147
|
- test/test_timeline.rb
|
139
148
|
- test/test_trigger.rb
|
140
149
|
- test/test_watch.rb
|
150
|
+
- test/test_webhook.rb
|
141
151
|
has_rdoc: true
|
142
152
|
homepage: http://god.rubyforge.org/
|
143
153
|
post_install_message:
|
@@ -167,27 +177,30 @@ signing_key:
|
|
167
177
|
specification_version: 2
|
168
178
|
summary: Like monit, only awesome
|
169
179
|
test_files:
|
170
|
-
- test/
|
171
|
-
- test/
|
172
|
-
- test/test_system_portable_poller.rb
|
173
|
-
- test/test_conditions_tries.rb
|
174
|
-
- test/test_task.rb
|
180
|
+
- test/test_behavior.rb
|
181
|
+
- test/test_campfire.rb
|
175
182
|
- 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
183
|
- test/test_conditions_disk_usage.rb
|
181
|
-
- test/
|
182
|
-
- test/
|
184
|
+
- test/test_conditions_http_response_code.rb
|
185
|
+
- test/test_conditions_process_running.rb
|
186
|
+
- test/test_conditions_tries.rb
|
187
|
+
- test/test_contact.rb
|
183
188
|
- test/test_dependency_graph.rb
|
189
|
+
- test/test_driver.rb
|
190
|
+
- test/test_email.rb
|
191
|
+
- test/test_event_handler.rb
|
192
|
+
- test/test_god.rb
|
193
|
+
- test/test_handlers_kqueue_handler.rb
|
194
|
+
- test/test_logger.rb
|
184
195
|
- test/test_metric.rb
|
196
|
+
- test/test_process.rb
|
185
197
|
- test/test_registry.rb
|
186
|
-
- test/test_behavior.rb
|
187
198
|
- test/test_socket.rb
|
188
199
|
- test/test_sugar.rb
|
189
|
-
- test/
|
190
|
-
- test/test_conditions_http_response_code.rb
|
191
|
-
- test/test_god.rb
|
200
|
+
- test/test_system_portable_poller.rb
|
192
201
|
- test/test_system_process.rb
|
193
|
-
- test/
|
202
|
+
- test/test_task.rb
|
203
|
+
- test/test_timeline.rb
|
204
|
+
- test/test_trigger.rb
|
205
|
+
- test/test_watch.rb
|
206
|
+
- test/test_webhook.rb
|