lib/backup/jar.rb in encbs-0.2.1 vs lib/backup/jar.rb in encbs-0.2.2
- old
+ new
@@ -104,11 +104,11 @@
@meta_index.merge!({
:jar_path => meta_jar_path,
:timestamp => @timestamp
})
File.open("/var/tmp/encbs.swap", "w") do |f|
- f.puts @meta_index.to_yaml
+ f.print @meta_index.to_yaml
end
puts
puts_fail "Index file has been saved that to allow upload into cloud in next run."
else
@@ -156,10 +156,10 @@
files
end
class << self
def hash_to_path(file_item, root_path, hash)
- file_item.read_file("#{root_path}/meta/jars/#{hash}").chomp
+ file_item.read_file("#{root_path}/meta/jars/#{hash}")
rescue Errno::ENOENT
""
end
def all(file_item, root_path)