Add start and stop to ServiceCollections
This commit is contained in:
parent
4cf072a013
commit
39497f6ee7
2 changed files with 27 additions and 0 deletions
|
|
@ -34,4 +34,13 @@ class ServiceCollection(list):
|
|||
if service.name == name:
|
||||
return service
|
||||
|
||||
def start(self):
|
||||
for container in self:
|
||||
container.start()
|
||||
|
||||
def stop(self):
|
||||
for container in self:
|
||||
container.stop()
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue