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:
parent
6f99de30d0
commit
c2d34aeaff
3 changed files with 1 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# system
|
||||
import logging
|
||||
|
||||
# local
|
||||
from ._subcommand import FlexCommand
|
||||
from .utils.dockercommand import DockerCommand
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue