# File lib/chef/checksum/storage/filesystem.rb, line 32 def checksum_repo_directory File.join(Chef::Config.checksum_path, @checksum[0..1]) end
# File lib/chef/checksum/storage/filesystem.rb, line 36 def commit(sandbox_file) FileUtils.mkdir_p(checksum_repo_directory) File.rename(sandbox_file, file_location) end
# File lib/chef/checksum/storage/filesystem.rb, line 27 def file_location File.join(checksum_repo_directory, @checksum) end
Deletes the file backing this checksum from the on-disk repo. Purging the checksums is how users can get back to a valid state if they've deleted files, so we silently swallow Errno::ENOENT here.
# File lib/chef/checksum/storage/filesystem.rb, line 48 def purge FileUtils.rm(file_location) rescue Errno::ENOENT true end
Generated with the Darkfish Rdoc Generator 2.