bugscpp.processor.build.BuildCommand¶
- class BuildCommand[source]¶
Bases:
processor.core.command.DockerCommandMethods
__init__()create_script_generator(args)Return DockerExecInfo which has information of a command list to run inside docker container.
setup(generator)Invoked before container is created.
teardown(generator)Invoked after container is destroyed.
Attributes
SCRIPT_NAMERepresent the group of this command.
Description of this command.
- create_script_generator(args: argparse.Namespace) processor.core.command.DockerCommandScriptGenerator[source]¶
Return DockerExecInfo which has information of a command list to run inside docker container.
- Parameters
args (argparse.Namespace) – argparse.Namespace instance.
- Returns
An instance of generator class which is used to create DockerCommandScript.
- Return type
- property group: str¶
Represent the group of this command. It is not meaningful yet.
- property help: str¶
Description of this command.
- setup(generator: processor.core.command.DockerCommandScriptGenerator)[source]¶
Invoked before container is created.
- Parameters
generator (DockerCommandScriptGenerator) – The current instance being used.
- teardown(generator: processor.core.command.DockerCommandScriptGenerator)[source]¶
Invoked after container is destroyed.
- Parameters
generator (DockerCommandScriptGenerator) – The current instance being used.