NAME

Tapper::Base - Tapper - Common functions for all Tapper classes

SYNOPSIS

Currently, only an OO interface is implemented. Non-OO will follow when needed.

use Tapper::Base;
use Moose;

extends 'Tapper::Base';

FUNCTIONS

kill_instance

Kill the process whose id is in the given pidfile.

@param string - pid file name

@return success - 0 @return error - error string

run_one

Run one instance of the given command. Kill previous incarnations if necessary.

@param hash ref - {command => command to execute, pid_file => pid file containing the ID of last incarnation, argv => array ref containg (optional) arguments}

@return success - 0 @return error - error string

makedir

Checks whether a given directory exists and creates it if not.

@param string - directory to create

@return success - 0 @return error - error string

log_and_exec

Execute a given command. Make sure the command is logged if requested and none of its output pollutes the console. In scalar context the function returns 0 for success and the output of the command on error. In array context the function always return a list containing the return value of the command and the output of the command.

@param string - command

@return success - 0 @return error - error string @returnlist success - (0, output) @returnlist error - (return value of command, output)

AUTHOR

AMD OSRC Tapper Team, <tapper at amd64.org>

BUGS

Please report any bugs or feature requests to bug-tapper-base at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Tapper-Base. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2008-2011 AMD OSRC Tapper Team, all rights reserved.

This program is released under the following license: freebsd

1 POD Error

The following errors were encountered while parsing the POD:

Around line 130:

=cut found outside a pod block. Skipping to next block.