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

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

Methods

Classes and Modules

Class Puppet::Util::Checksums::FakeChecksum

Public Instance methods

Is the provided string a checksum?

Return the :ctime of a file.

ctime_stream()

Alias for mtime_stream

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.

md5lite_stream(&block)

Alias for md5_stream

Return the :mtime timestamp of a file.

by definition this doesn‘t exist but we still need to execute the block given

Return a "no checksum"

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.

sha1lite_stream()

Alias for sha1_stream

Strip the checksum type from an existing checksum

Strip the checksum type from an existing checksum

[Validate]