cohydra.command_executor.console¶
Null-Object for dry runs.
Classes
The ConsoleCommandExecutor just prints out the commands to be executed. |
-
class
cohydra.command_executor.console.
ConsoleCommandExecutor
(name='unnamed')[source]¶ Bases:
cohydra.command_executor.base.CommandExecutor
The ConsoleCommandExecutor just prints out the commands to be executed.
It resembles some kind of Null-Object, useful for debugging purposes.
-
execute
(command, user=None, shell=None, stdout_logfile=None, stderr_logfile=None)[source]¶ Execute a command.
- Parameters
command (str) – The command to run.
user (str) – The user to run the command as.
shell (str) – The type of shell to use (
sh
,bash
, …).stdout_logfile (str) – The path to the log file to append the stdout output.
stderr_logfile (str) – The path to the log file to append the stderr output.
-
get_logger
()¶ Retrieve the logger for this command executor.
-
Inheritance Diagramm