woom.tasks.Task#
- class woom.tasks.Task(taskconfig, host)[source]#
- __init__(taskconfig, host)[source]#
Initialize a task
- Parameters:
taskconfig (configobj.Section) – Task configuration section
host (Host) – Host instance
Attributes
The artifacts specifications as a dict (
dict)Commandline as an bash lines
The task configuration as loaded from the
tasks.cfg(ConfigObj)Context to be used for rendering
Instance of
woom.env.EnvConfigspecific to this task (EnvConfig)It is blocking?
Is this task statically skipped (set via
skip = Trueintasks.cfg)?The task name (
str)Run directory
Methods
export()Export the task specification with rendering
Export a dict of scheduler options
fill_templates([dry])Fill static user template files
get_artifact_path(name)Get the path of a single artifact from its name
Get the artifacts raw paths as a dict
Is the
contextalready set for this taskCheck that artifact paths are absolute and render them as dict
Render the task content with jinja
set_context(context)Set the context to be used for jinja rendering