mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

To that effect, the file validation was moved from validate_manifest to the validation phase.
16 lines
481 B
Python
16 lines
481 B
Python
import tasks
|
|
|
|
|
|
def validate_manifest(data, validator, error):
|
|
import os.path
|
|
|
|
schema_path = os.path.normpath(os.path.join(os.path.dirname(__file__), 'manifest-schema.yml'))
|
|
validator(data, schema_path)
|
|
|
|
|
|
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)
|