chillout 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/chillout/dispatcher.rb
CHANGED
data/lib/chillout/server_side.rb
CHANGED
data/lib/chillout/version.rb
CHANGED
data/lib/chillout/worker.rb
CHANGED
@@ -37,7 +37,13 @@ module Chillout
|
|
37
37
|
logger.error "Sending metrics failed"
|
38
38
|
end
|
39
39
|
|
40
|
+
def send_startup_message
|
41
|
+
dispatcher.send_startup_message
|
42
|
+
logger.info "Sending startup message"
|
43
|
+
end
|
44
|
+
|
40
45
|
def run
|
46
|
+
send_startup_message
|
41
47
|
loop do
|
42
48
|
containers_to_merge = get_all_containers_to_process
|
43
49
|
creations_container = merge_containers(containers_to_merge)
|
data/test/worker_test.rb
CHANGED
@@ -36,5 +36,10 @@ module Chillout
|
|
36
36
|
@queue.expects(:<<).with(:creations_container)
|
37
37
|
@worker.send_creations(:creations_container)
|
38
38
|
end
|
39
|
+
|
40
|
+
def test_send_startup_message_is_delegated_to_dispatcher
|
41
|
+
@dispatcher.expects(:send_startup_message)
|
42
|
+
@worker.send_startup_message
|
43
|
+
end
|
39
44
|
end
|
40
45
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chillout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Micha\xC5\x82 \xC5\x81omnicki"
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-03-
|
19
|
+
date: 2013-03-29 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: json
|