mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
15 lines
450 B
Python
15 lines
450 B
Python
from . import tasks
|
|
|
|
|
|
def validate_manifest(data, validator, error):
|
|
from bootstrapvz.common.tools import rel_path
|
|
|
|
validator(data, rel_path(__file__, 'manifest-schema.yml'))
|
|
|
|
|
|
def resolve_tasks(taskset, manifest):
|
|
if ('mkdirs' in manifest.plugins['file_copy']):
|
|
taskset.add(tasks.MkdirCommand)
|
|
if ('files' in manifest.plugins['file_copy']):
|
|
taskset.add(tasks.ValidateFiles)
|
|
taskset.add(tasks.FileCopyCommand)
|