1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-22 04:43: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): def _run_project(self, runner, config, args):
DockerCommand('docker-compose').run( if runner.run('net-up'):
config, args, ['up', '-d'] DockerCommand('docker-compose').run(
) config, args, ['up', '-d']
return True )
return True
return False
def _run_services(self, runner, config, args, services): def _run_services(self, runner, config, args, services):
DockerCommand('docker-compose').run( if runner.run('net-up'):
config, args, ['up', '-d', *services] DockerCommand('docker-compose').run(
) config, args, ['up', '-d', *services]
return True )
return True
return False