Method: Chef::Mixin::Checksum#checksum_match?

Defined in:
lib/chef/mixin/checksum.rb

#checksum_match?(ref_checksum, diff_checksum) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
38
39
# File 'lib/chef/mixin/checksum.rb', line 35

def checksum_match?(ref_checksum, diff_checksum)
  return false if ref_checksum.nil? || diff_checksum.nil?

  ref_checksum.casecmp?(diff_checksum)
end