1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2025-03-19 19:03:00 +00:00
kiwi-scp/src/kiwi/subcommands/push.py
2020-08-19 17:21:38 +02:00

18 lines
499 B
Python

# local
from ..subcommand import ServiceCommand
class PushCommand(ServiceCommand):
"""kiwi push"""
def __init__(self):
super().__init__(
'push', num_projects='?', num_services='*',
action="Pushing images for",
description="Push images for the whole instance, a project or service(s) inside a project"
)
def _run_services(self, runner, args, project, services):
project.compose_run(['push', *services])
return True