The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Collector::Commands - A role for commands to be used to collect data

VERSION

version 0.15

SYNOPSIS

    my $command = get_command('test');

    # new path
    set_command( test => '/usr/local/test' );

This is a role that is used to fetch the complete path of programs. The reason to use a complete path instead of relative (/bin/cat instead of cat) is a security reason. When using relative paths, you might reach aliases, depending on the configuration of the remote (or local) shell.

The idea is to make it easier for you to configure where your paths are, in case the default one don't work (such as the difference between FreeBSD and GNU/Linux.

NAME

ATTRIBUTES

commands(HashRef)

These are the set of commands. It comes with default locations for commands used by core Data::Collector::Info objects.

SUBROUTINES/METHODS

set_command

Sets a command's explicit path.

get_command

Gets a command's explicit path.

AUTHOR

Sawyer X <xsawyerx@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.