Merge pull request #411 from Banno/fig-pull
adding "fig pull [SERVICE]" to pull service images
This commit is contained in:
commit
fc4c35e977
5 changed files with 28 additions and 1 deletions
|
|
@ -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+)$')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue