Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) is shown here.
commit_new(f)
private
Commits changes to the data store file.
# File lib/pstore.rb, line 364
def commit_new(f)
f.truncate(0)
f.rewind
new_file = @filename + ".new"
File.open(new_file, RD_ACCESS) do |nf|
FileUtils.copy_stream(nf, f)
end
File.unlink(new_file)
end