Adds pause and unpause-commands
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
This commit is contained in:
parent
59d024f4f2
commit
227584b864
10 changed files with 147 additions and 4 deletions
|
|
@ -205,6 +205,14 @@ class Project(object):
|
|||
msg="Stopping"
|
||||
)
|
||||
|
||||
def pause(self, service_names=None, **options):
|
||||
for service in reversed(self.get_services(service_names)):
|
||||
service.pause(**options)
|
||||
|
||||
def unpause(self, service_names=None, **options):
|
||||
for service in self.get_services(service_names):
|
||||
service.unpause(**options)
|
||||
|
||||
def kill(self, service_names=None, **options):
|
||||
parallel_execute(
|
||||
objects=self.containers(service_names),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue