filbunke 1.1.11 → 1.1.12
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 +4 -2
- data/lib/filbunke/daemon.rb +0 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.12
|
data/filbunke.gemspec
CHANGED
data/lib/filbunke/client.rb
CHANGED
@@ -25,7 +25,9 @@ module Filbunke
|
|
25
25
|
updated_files = updates["files"] || []
|
26
26
|
failure = false
|
27
27
|
|
28
|
-
|
28
|
+
new_checkpoint = update["checkpoint"]
|
29
|
+
|
30
|
+
@logger.log "Updating repository: #{repository.name}: #{updated_files.size} files. Checkpoint: #{last_checkpoint} ==> #{new_checkpoint}" if updated_files.size > 0
|
29
31
|
|
30
32
|
updated_files.each do |raw_file|
|
31
33
|
file = File.new(raw_file)
|
@@ -47,7 +49,7 @@ module Filbunke
|
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
50
|
-
failure ? last_checkpoint : (
|
52
|
+
failure ? last_checkpoint : (new_checkpoint || last_checkpoint)
|
51
53
|
end
|
52
54
|
|
53
55
|
def update_files!(last_checkpoint)
|
data/lib/filbunke/daemon.rb
CHANGED
@@ -37,7 +37,6 @@ module Filbunke
|
|
37
37
|
@logger.log("Starting filbunked")
|
38
38
|
while true
|
39
39
|
@clients.each do |client|
|
40
|
-
@logger.log("Updating repository: #{client.repository.name}")
|
41
40
|
new_checkpoint = client.update_files!(checkpoint_for_repository(client.repository))
|
42
41
|
update_checkpoint_for_repository(client.repository, new_checkpoint)
|
43
42
|
end
|