bugscpp.processor.build.BuildCommand

class BuildCommand[source]

Bases: processor.core.command.DockerCommand

__init__()[source]

Methods

__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_NAME

group

Represent the group of this command.

help

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

DockerCommandScriptGenerator

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.