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
|
|
@ -90,6 +90,7 @@ class TopLevelCommand(Command):
|
|||
scale Set number of containers for a service
|
||||
start Start services
|
||||
stop Stop services
|
||||
restart Restart services
|
||||
up Create and start containers
|
||||
|
||||
"""
|
||||
|
|
@ -315,6 +316,14 @@ class TopLevelCommand(Command):
|
|||
"""
|
||||
project.stop(service_names=options['SERVICE'])
|
||||
|
||||
def restart(self, project, options):
|
||||
"""
|
||||
Restart running containers.
|
||||
|
||||
Usage: restart [SERVICE...]
|
||||
"""
|
||||
project.restart(service_names=options['SERVICE'])
|
||||
|
||||
def up(self, project, options):
|
||||
"""
|
||||
Build, (re)create, start and attach to containers for a service.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue