From 9364b18288251abeac5e0a285694fd915dce731e Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Wed, 2 Aug 2017 15:42:13 +0200 Subject: [PATCH] commands plugin: Run copy files before running commands This is quite useful in situations where you want to do something with the assets that you have copied into the image. One could argue for the opposite case as well, but with the commands plugin you always have the manual "cp" escape hatch. --- bootstrapvz/plugins/commands/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrapvz/plugins/commands/tasks.py b/bootstrapvz/plugins/commands/tasks.py index 0482778..d738bad 100644 --- a/bootstrapvz/plugins/commands/tasks.py +++ b/bootstrapvz/plugins/commands/tasks.py @@ -1,10 +1,13 @@ from bootstrapvz.base import Task from bootstrapvz.common import phases +from bootstrapvz.plugins.file_copy.tasks import MkdirCommand +from bootstrapvz.plugins.file_copy.tasks import FileCopyCommand class ImageExecuteCommand(Task): description = 'Executing commands in the image' phase = phases.user_modification + predecessors = [MkdirCommand, FileCopyCommand] @classmethod def run(cls, info):