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

@ -410,6 +410,11 @@ class Service(object):
return False
return True
def pull(self):
if 'image' in self.options:
log.info('Pulling %s (%s)...' % (self.name, self.options.get('image')))
self.client.pull(self.options.get('image'))
NAME_RE = re.compile(r'^([^_]+)_([^_]+)_(run_)?(\d+)$')