Method: PDQTest::Skeleton.should_replace_file

Defined in:
lib/pdqtest/skeleton.rb

.should_replace_file(target, skeleton) ⇒ Object



66
67
68
69
70
71
72
73
74
# File 'lib/pdqtest/skeleton.rb', line 66

def self.should_replace_file(target, skeleton)
  target_hash   = Digest::SHA256.file target
  skeleton_hash = Digest::SHA256.file skeleton

  should = (target_hash != skeleton_hash)
  $logger.debug "should replace: #{should}"

  should
end