1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-23 05:13:01 +00:00
kiwi-scp/src/kiwi/subcommands/pull.py
2020-08-18 15:12:08 +02:00

19 lines
561 B
Python

# local
from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand
class PullCommand(FlexCommand):
"""kiwi pull"""
def __init__(self):
super().__init__(
'pull', "Pulling images for",
description="Pull images for the whole instance, a project or service(s) inside a project"
)
def _run_services(self, runner, config, args, services):
DockerCommand('docker-compose').run(
config, args, ['pull', '--ignore-pull-failures', *services]
)
return True