1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2025-12-07 00:53:10 +00:00
kiwi-scp/src/kiwi/subcommands/up.py

22 lines
590 B
Python

# local
from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand
class UpCommand(FlexCommand):
"""kiwi up"""
def __init__(self):
super().__init__(
'up', "Bringing up",
description="Bring up the whole instance, a project or service(s) inside a project"
)
def _run_services(self, runner, config, args, services):
if runner.run('net-up'):
DockerCommand('docker-compose').run(
config, args, ['up', '-d', *services]
)
return True
return False