filbunke 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/filbunke.gemspec +1 -1
- data/lib/filbunke/client.rb +1 -1
- data/lib/filbunke/daemon.rb +7 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.13
|
data/filbunke.gemspec
CHANGED
data/lib/filbunke/client.rb
CHANGED
@@ -25,7 +25,7 @@ module Filbunke
|
|
25
25
|
updated_files = updates["files"] || []
|
26
26
|
failure = false
|
27
27
|
|
28
|
-
new_checkpoint =
|
28
|
+
new_checkpoint = updates["checkpoint"]
|
29
29
|
|
30
30
|
@logger.log "Updating repository: #{repository.name}: #{updated_files.size} files. Checkpoint: #{last_checkpoint} ==> #{new_checkpoint}" if updated_files.size > 0
|
31
31
|
|
data/lib/filbunke/daemon.rb
CHANGED
@@ -36,10 +36,17 @@ module Filbunke
|
|
36
36
|
def run!
|
37
37
|
@logger.log("Starting filbunked")
|
38
38
|
while true
|
39
|
+
begin
|
40
|
+
|
39
41
|
@clients.each do |client|
|
40
42
|
new_checkpoint = client.update_files!(checkpoint_for_repository(client.repository))
|
41
43
|
update_checkpoint_for_repository(client.repository, new_checkpoint)
|
42
44
|
end
|
45
|
+
|
46
|
+
rescue StandardError => e
|
47
|
+
@logger.log("Died.. #{e.message}")
|
48
|
+
exit 1
|
49
|
+
end
|
43
50
|
sleep @config["run_every"]
|
44
51
|
end
|
45
52
|
end
|