class Gem::Tasks::Sign::Checksum

def sign(path)

Parameters:
  • path (String) --
def sign(path)
  status "Checksums for #{File.basename(path)}:"
  puts
  puts "  md5:    #{Digest::MD5.file(path)}"    if @md5
  puts "  sha1:   #{Digest::SHA1.file(path)}"   if @sha1
  puts "  sha2:   #{Digest::SHA2.file(path)}"   if @sha2
  puts "  sha512: #{Digest::SHA512.file(path)}" if @sha512
  puts
end