lib/filbunke/client.rb in filbunke-1.1.9 vs lib/filbunke/client.rb in filbunke-1.1.10

- old
+ new

@@ -22,10 +22,13 @@ def with_updated_files(last_checkpoint) updates = get_updated_file_list(last_checkpoint) updated_files = updates["files"] || [] failure = false + + @logger "Updating #{updated_files.size} files for #{repository.name}" if updated_files.size > 0 + updated_files.each do |raw_file| file = File.new(raw_file) local_file_path = ::File.join(repository.local_path, file.path) if file_needs_update?(file, local_file_path) @@ -151,9 +154,10 @@ end end def delete_file!(file_path) if ::File.exists?(file_path) then + @logger.log("Deleting: #{file_path}") ::File.delete(file_path) end end end