1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-24 21:52: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 return result
def _run_project(self, runner, config, args): def _run_project(self, runner, config, args):
pass return self._run_services(runner, config, args, [])
def _run_services(self, runner, config, args, services): def _run_services(self, runner, config, args, services):
pass pass

View file

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

View file

@ -1,6 +1,3 @@
# system
import logging
# local # local
from ._subcommand import FlexCommand from ._subcommand import FlexCommand
from .utils.dockercommand import DockerCommand 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" 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): def _run_services(self, runner, config, args, services):
if runner.run('net-up'): if runner.run('net-up'):
DockerCommand('docker-compose').run( DockerCommand('docker-compose').run(