Method: Chef::Provider::File#compare_content
- Defined in:
- lib/chef/provider/file.rb
#compare_content ⇒ Object
Compare the content of a file. Returns true if they are the same, false if they are not.
180 181 182 |
# File 'lib/chef/provider/file.rb', line 180 def compare_content checksum(@current_resource.path) == new_resource_content_checksum end |