kiwi.tasks package
Submodules
kiwi.tasks.base Module
- class kiwi.tasks.base.CliTask(should_perform_task_setup: bool = True)[source]
Bases:
objectBase class for all task classes, loads the task and provides the interface to the command options and the XML description
Attributes
should_perform_task_setupIndicates if the task should perform the setup steps which covers the following task configurations: * setup debug level * setup logfile * setup color output
- attr_token(option: str) List[bool | str | List[str] | None][source]
Helper method for commandline options of the form –option attribute=value
- Parameters:
option (str) – attribute=value string
- Returns:
common option value representation
- Return type:
list
- eleventuple_token(option: str) List[bool | str | List[str] | None][source]
Helper method for commandline options of the form –option a,b,c,d,e,f,g,h,i,j,k
Make sure to provide a common result for option values which separates the information in a comma separated list of values
- Parameters:
option (str) – comma separated option string
- Returns:
common option value representation
- Return type:
list
- load_xml_description(description_directory: str, kiwi_file: str = '') None[source]
Load, upgrade, validate XML description
- Parameters:
description_directory (str) – Path to the image description
kiwi_file (str) – Basename of kiwi file which contains the main image configuration elements. If not specified kiwi searches for a file named config.xml or a file matching .kiwi
- quadruple_token(option: str) List[bool | str | List[str] | None][source]
Helper method for commandline options of the form –option a,b,c,d
Make sure to provide a common result for option values which separates the information in a comma separated list of values
- Parameters:
option (str) – comma separated option string
- Returns:
common option value representation
- Return type:
list
kiwi.tasks.result_bundle Module
- class kiwi.tasks.result_bundle.ResultBundleTask(should_perform_task_setup: bool = True)[source]
Bases:
CliTaskImplements result bundler
Attributes
manualInstance of Help
- process()[source]
Create result bundle from the image build results in the specified target directory. Each result image will contain the specified bundle identifier as part of its filename. Uncompressed image files will also become xz compressed and a sha sum will be created from every result image