Merge pull request #1766 from funkyfuture/pause_unpause
Adds pause and unpause-commands
This commit is contained in:
commit
60ff4549c9
10 changed files with 150 additions and 6 deletions
|
|
@ -180,6 +180,14 @@ class TopLevelCommand(Command):
|
|||
print("Attaching to", list_containers(containers))
|
||||
LogPrinter(containers, attach_params={'logs': True}, monochrome=monochrome).run()
|
||||
|
||||
def pause(self, project, options):
|
||||
"""
|
||||
Pause services.
|
||||
|
||||
Usage: pause [SERVICE...]
|
||||
"""
|
||||
project.pause(service_names=options['SERVICE'])
|
||||
|
||||
def port(self, project, options):
|
||||
"""
|
||||
Print the public port for a port binding.
|
||||
|
|
@ -452,6 +460,14 @@ class TopLevelCommand(Command):
|
|||
timeout = int(options.get('--timeout') or DEFAULT_TIMEOUT)
|
||||
project.restart(service_names=options['SERVICE'], timeout=timeout)
|
||||
|
||||
def unpause(self, project, options):
|
||||
"""
|
||||
Unpause services.
|
||||
|
||||
Usage: unpause [SERVICE...]
|
||||
"""
|
||||
project.unpause(service_names=options['SERVICE'])
|
||||
|
||||
def up(self, project, options):
|
||||
"""
|
||||
Builds, (re)creates, starts, and attaches to containers for a service.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue