Method: Ing::Files::CreateFile#identical?
- Defined in:
- lib/ing/actions/create_file.rb
#identical? ⇒ Boolean
Checks if the content of the file at the destination is identical to the rendered result.
Returns
- Boolean
-
true if it is identical, false otherwise.
46 47 48 |
# File 'lib/ing/actions/create_file.rb', line 46 def identical? exists? && File.binread(destination) == render end |