Add start and stop to ServiceCollections

This commit is contained in:
Ben Firshman 2013-12-09 17:48:15 +00:00
commit 39497f6ee7
2 changed files with 27 additions and 0 deletions

View file

@ -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()