fab.tools.shell#

This file contains a base class for shells. This can be used to execute other scripts.

Classes

Shell(name)

A simple wrapper that runs a shell script.

class fab.tools.shell.Shell(name)#

A simple wrapper that runs a shell script. There seems to be no consistent way to simply check if a shell is working - not only support a version command (e.g. sh and dash don’t). Instead, availability is tested by running a simple ‘echo’ command.

Name:

the path to the script to run.

exec(command)#

Executes the specified command.

Parameters:

command (Union[str, List[Union[str, Path]]]) – the command and potential parameters to execute.

Return type:

str

Returns:

stdout of the result.