NAME
Data::Collector::Commands - A role for commands to be used to collect data
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.
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 at cpan.org>