# File lib/chef/chef_fs/file_system/cookbook_file.rb, line 33 def checksum file[:checksum] end
# File lib/chef/chef_fs/file_system/cookbook_file.rb, line 51 def compare_to(other) other_value = nil if other.respond_to?(:checksum) other_checksum = other.checksum else begin other_value = other.read rescue Chef::ChefFS::FileSystem::NotFoundError return [ false, nil, :none ] end other_checksum = calc_checksum(other_value) end [ checksum == other_checksum, nil, other_value ] end
Generated with the Darkfish Rdoc Generator 2.