Module Puppet::Util::Checksums
In: lib/puppet/util/checksums.rb

A stand-alone module for calculating checksums in a generic way.

Methods

Public Instance methods

Return the :ctime of a file.

Calculate a checksum using Digest::MD5.

Calculate a checksum of a file‘s content using Digest::MD5.

Calculate a checksum of the first 500 chars of the content using Digest::MD5.

Calculate a checksum of the first 500 chars of a file‘s content using Digest::MD5.

Return the :mtime timestamp of a file.

Calculate a checksum using Digest::SHA1.

Calculate a checksum of a file‘s content using Digest::SHA1.

Calculate a checksum of the first 500 chars of the content using Digest::SHA1.

Calculate a checksum of the first 500 chars of a file‘s content using Digest::SHA1.

Strip the checksum type from an existing checksum

[Validate]