Slaughter::Private - Perl Automation Tool Helper Internal Details
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!
Now follows documentation on the available methods.
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.
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.
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.
Steve Kemp <steve@steve.org.uk>
To install App::Slaughter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Slaughter
CPAN shell
perl -MCPAN -e shell install App::Slaughter
For more information on module installation, please visit the detailed CPAN module installation guide.