Implement restart command (Closes #98)
Signed-off-by: Mark Steve Samson <hello@marksteve.com>
This commit is contained in:
parent
22f897ed09
commit
9d55e01e2a
4 changed files with 21 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue