Tapper Team > Tapper-Base > Tapper::Base

Download:
Tapper-Base-5.0.0.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 5.0.0   Source  

NAME ^

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

SYNOPSIS ^

 package Tapper::Some::Class;
 use Moose;
 extends 'Tapper::Base';

FUNCTIONS ^

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)

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2015 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License
syntax highlighting: