lib/fig/lock.rb
# Fetch all images from the fig hash.
Fetch all images from the fig hash.
Fetch all images from the fig hash .
def fetch_images(hash)
  log.info "Fetching images:"
  hash.each do |k,v|
  image = v['image']
  if image
  log.info "Fetching #{image} ..."
  system "sudo docker pull #{image}"
  fail "Unable to fetch image: #{image}.\n\tExit code:#{$?.exitstatus}" unless $?.exitstatus.zero?
  end
  end
  log.info "Done fetching images."
  end
def fetch_images ( hash ) log . info "Fetching images:" hash . each do | k , v | image = v [ 'image' ] if image log . info "Fetching #{image} ..." system "sudo docker pull #{image}" fail "Unable to fetch image: #{image}.\n\tExit code:#{$?.exitstatus}" unless $? . exitstatus . zero? end end log . info "Done fetching images." end
Fetch all images from the fig hash.
Fetch all images from the fig hash .
hash
<not_specific>