Implement restart command (Closes #98)

Signed-off-by: Mark Steve Samson <hello@marksteve.com>
This commit is contained in:
Mark Steve Samson 2014-08-08 11:22:33 +08:00
commit 9d55e01e2a
4 changed files with 21 additions and 0 deletions

View file

@ -155,6 +155,10 @@ class Project(object):
for service in reversed(self.get_services(service_names)):
service.kill(**options)
def restart(self, service_names=None, **options):
for service in self.get_services(service_names):
service.restart(**options)
def build(self, service_names=None, no_cache=False):
for service in self.get_services(service_names):
if service.can_be_built():