in o2a/mappers/git_mapper.py [0:0]
def to_tasks_and_relations(self):
action_task = Task(
task_id=self.name,
template_name="git.tpl",
template_params=dict(
git_uri=self.git_uri,
git_branch=self.git_branch,
destination_path=self.destination_path,
key_path=self.key_path,
props=self.props,
),
)
tasks = [action_task]
relations: List[Relation] = []
prepare_task = self.prepare_extension.get_prepare_task()
if prepare_task:
tasks, relations = self.prepend_task(prepare_task, tasks, relations)
return tasks, relations