filbunke 1.1.8 → 1.1.9
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/daemon.rb +0 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.9
|
data/filbunke.gemspec
CHANGED
data/lib/filbunke/daemon.rb
CHANGED
@@ -48,12 +48,10 @@ module Filbunke
|
|
48
48
|
private
|
49
49
|
|
50
50
|
def checkpoint_for_repository(repository)
|
51
|
-
@logger.log("Getting checkpoint for: #{repository.name}")
|
52
51
|
::File.open(checkpoint_file_name_for_repository(repository), 'r') {|f| f.readline.to_i } rescue 0
|
53
52
|
end
|
54
53
|
|
55
54
|
def update_checkpoint_for_repository(repository, checkpoint)
|
56
|
-
@logger.log("Updating checkpoint for: #{repository.name} to #{checkpoint}.")
|
57
55
|
f = ::File.new(checkpoint_file_name_for_repository(repository), 'w', repository.file_umask)
|
58
56
|
f.write(checkpoint)
|
59
57
|
f.close
|