class Thor::Actions::CreateFile
def identical?
Boolean:: true if it is identical, false otherwise.
==== Returns
Checks if the content of the file at the destination is identical to the rendered result.
def identical? # binread uses ASCII-8BIT, so to avoid false negatives, the string must use the same exists? && File.binread(destination) == String.new(render).force_encoding("ASCII-8BIT") end