Method: Puppet::ModuleTool::Checksums#checksum

Defined in:
lib/puppet/module_tool/checksums.rb

#checksum(pathname) ⇒ Object

Return checksum for the Pathname.



20
21
22
# File 'lib/puppet/module_tool/checksums.rb', line 20

def checksum(pathname)
  return Digest::MD5.hexdigest(Puppet::FileSystem.binread(pathname))
end