1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-21 20:33:00 +00:00

Regression: Run net-up automatically

This commit is contained in:
Jörn-Michael Miehe 2020-08-18 14:23:56 +02:00
parent 6976480dd7
commit 6f99de30d0

View file

@ -16,13 +16,19 @@ class UpCommand(FlexCommand):
)
def _run_project(self, runner, config, args):
DockerCommand('docker-compose').run(
config, args, ['up', '-d']
)
return True
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):
DockerCommand('docker-compose').run(
config, args, ['up', '-d', *services]
)
return True
if runner.run('net-up'):
DockerCommand('docker-compose').run(
config, args, ['up', '-d', *services]
)
return True
return False