checksum.rb

Path: lib/puppet/type/file/checksum.rb
Last Update: Wed Dec 09 12:54:29 -0800 2009

Required files

puppet/util/checksums  

Methods

Included Modules

Puppet::Util::Checksums

Public Class methods

Public Instance methods

Store the checksum in the data cache, or retrieve it if only the sum type is provided.

Checksums need to invert how changes are printed.

Because source and content and whomever else need to set the checksum and do the updating, we provide a simple mechanism for doing so.

Calculate the sum from disk.

At this point, we don‘t actually modify the system, we modify the stored state to reflect the current state, and then kick off an event to mark any changes.

Even though they can specify multiple checksums, the insync? mechanism can really only test against one, so we‘ll just retrieve the first specified sum type.

Store the new sum to the state db.

[Validate]