bugscpp.processor.build.BuildCommandScript¶
- class BuildCommandScript(verbose: bool, *args, **kwargs)[source]¶
Bases:
processor.core.command.DockerCommandScript
Methods
__init__
(verbose, *args, **kwargs)after
()Invoked after script is executed.
before
()Invoked before script is executed.
output
(linenr, exit_code, stream)Invoked after each line is executed.
- returns
Return true if it should be written to a file and executed at once,
step
(linenr, line)Invoked before each line is executed.
- output(linenr: Optional[int], exit_code: Optional[int], stream: str)[source]¶
Invoked after each line is executed. linenr is None if all commands are executed as if it is a script.
- Parameters
linenr (Optional[int]) – Index of the commands which has been executed. None if the type is CommandType.Script.
exit_code (Optional[int]) – Exit code of the executed command. None when stream is set to False.
output (str) – Captured stdout of the executed command.
- should_be_run_at_once() bool ¶
- Returns
Return true if it should be written to a file and executed at once, otherwise if it is sent to a container line by line.
- Return type
bool