NAME

Slaughter::Private - Perl Automation Tool Helper Internal Details

SYNOPSIS

This module implements the non-public API of the Slaughter administration tool.

Users are not expected to use, touch, browse, or modify the code in this module!

METHODS

Now follows documentation on the available methods.

fetchFromTransport

This primitive will retrieve a file from the central server, using the specified transport.

The various transports are pluggable and live beneath the Slaughter::Transport namespace.

fetchFromTransport( "/etc/motd" );

A single parameter is accepted which is the name of the file to fetch, relative to the transport's root.

On success the file's contents are returned. On failure undef is returned.

checksumFile

This primitive will attempt to calculate and return the SHA digest of the specified file.

The method attempts to use both Digest::SHA & Digest::SHA1, returning the result from the first one which is present.

checksumFile( "/etc/motd" );

A single parameter is accepted which is the name of the file to hash.

On success the hash is returned, on failure undef is returned.

LICENSE

Copyright (c) 2010-2015 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.

AUTHOR

Steve Kemp <steve@steve.org.uk>