1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-12-25 18:42:59 +00:00

"up" for project same command

This commit is contained in:
Jörn-Michael Miehe 2020-08-18 14:28:03 +02:00
parent 6f99de30d0
commit c2d34aeaff
3 changed files with 1 additions and 16 deletions

View file

@ -98,7 +98,7 @@ class FlexCommand(ServiceCommand):
return result
def _run_project(self, runner, config, args):
pass
return self._run_services(runner, config, args, [])
def _run_services(self, runner, config, args, services):
pass

View file

@ -1,6 +1,3 @@
# system
import logging
# local
from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand

View file

@ -1,6 +1,3 @@
# system
import logging
# local
from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand
@ -15,15 +12,6 @@ class UpCommand(FlexCommand):
description="Bring up the whole instance, a project or service(s) inside a project"
)
def _run_project(self, runner, config, args):
if runner.run('net-up'):
DockerCommand('docker-compose').run(
config, args, ['up', '-d']
)
return True
return False
def _run_services(self, runner, config, args, services):
if runner.run('net-up'):
DockerCommand('docker-compose').run(