1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2025-12-06 16:43:00 +00:00

subcommand "push"

This commit is contained in:
Jörn-Michael Miehe 2020-08-18 15:12:08 +02:00
parent bf6d91fd81
commit 322953c5bb
4 changed files with 23 additions and 2 deletions

View file

@ -7,6 +7,7 @@ from .init import InitCommand
from .logs import LogsCommand
from .net import NetUpCommand, NetDownCommand
from .pull import PullCommand
from .push import PushCommand
from .sh import ShCommand
from .show import ShowCommand
from .up import UpCommand
@ -23,6 +24,7 @@ __all__ = [
'NetUpCommand',
'NetDownCommand',
'PullCommand',
'PushCommand',
'ShCommand',
'ShowCommand',
'UpCommand',

View file

@ -8,7 +8,7 @@ class BuildCommand(FlexCommand):
def __init__(self):
super().__init__(
'build', "Building images",
'build', "Building images for",
description="Build images for the whole instance, a project or service(s) inside a project"
)

View file

@ -8,7 +8,7 @@ class PullCommand(FlexCommand):
def __init__(self):
super().__init__(
'pull', "Pulling images",
'pull', "Pulling images for",
description="Pull images for the whole instance, a project or service(s) inside a project"
)

View file

@ -0,0 +1,19 @@
# local
from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand
class PushCommand(FlexCommand):
"""kiwi push"""
def __init__(self):
super().__init__(
'push', "Pushing images for",
description="Push 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, ['push', *services]
)
return True