Method: Chef::Provider::File#compare_content

Defined in:
lib/chef/provider/file.rb

#compare_contentObject

Compare the content of a file. Returns true if they are the same, false if they are not.



59
60
61
# File 'lib/chef/provider/file.rb', line 59

def compare_content
  checksum(@current_resource.path) == new_resource_content_checksum
end