mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 12:53:00 +00:00
Regression: Run net-up automatically
This commit is contained in:
parent
6976480dd7
commit
6f99de30d0
1 changed files with 14 additions and 8 deletions
|
@ -16,13 +16,19 @@ class UpCommand(FlexCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _run_project(self, runner, config, args):
|
def _run_project(self, runner, config, args):
|
||||||
|
if runner.run('net-up'):
|
||||||
DockerCommand('docker-compose').run(
|
DockerCommand('docker-compose').run(
|
||||||
config, args, ['up', '-d']
|
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):
|
||||||
|
if runner.run('net-up'):
|
||||||
DockerCommand('docker-compose').run(
|
DockerCommand('docker-compose').run(
|
||||||
config, args, ['up', '-d', *services]
|
config, args, ['up', '-d', *services]
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
Loading…
Reference in a new issue