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
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Advanced Micro Devices, Inc.
This is free software, licensed under:
The (two-clause) FreeBSD License