mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
14 lines
422 B
Python
14 lines
422 B
Python
from base import Task
|
|
from common import phases
|
|
|
|
|
|
class ImageExecuteCommand(Task):
|
|
description = 'Execute command in the image'
|
|
phase = phases.system_modification
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
from common.tools import log_check_call
|
|
for raw_command in info.manifest.plugins['image_commands']['commands']:
|
|
command = map(lambda part: part.format(**info.manifest_vars), raw_command)
|
|
log_check_call(command)
|