Merge pull request #411 from Banno/fig-pull

adding "fig pull [SERVICE]" to pull service images
This commit is contained in:
Ben Firshman 2014-09-10 23:57:20 +01:00
commit fc4c35e977
5 changed files with 28 additions and 1 deletions

View file

@ -86,6 +86,7 @@ class TopLevelCommand(Command):
logs View output from containers
port Print the public port for a port binding
ps List containers
pull Pulls service images
rm Remove stopped containers
run Run a one-off command
scale Set number of containers for a service
@ -204,6 +205,14 @@ class TopLevelCommand(Command):
])
print(Formatter().table(headers, rows))
def pull(self, project, options):
"""
Pulls images for services.
Usage: pull [SERVICE...]
"""
project.pull(service_names=options['SERVICE'])
def rm(self, project, options):
"""
Remove stopped service containers.