resources/download_buildpack_cache.rb
def download_components(file_uri, file)
    begin
      comp_index = YAML.load_file(file)
    rescue => e
      abort "ERROR: Failed loading #{file_uri}: #{e}"
    end
    comp_index.values.each do |comp_uri|
      comp_file = File.join(@cache_dir, filename(comp_uri))
      download(comp_uri, comp_file)
    end
  end
# Downloads remote content referenced in component_index.yml
Downloads remote content referenced in component_index.yml
Downloads remote content referenced in component_index . yml
def download_components(file_uri, file)
    begin
      comp_index = YAML.load_file(file)
    rescue => e
      abort "ERROR: Failed loading #{file_uri}: #{e}"
    end
    comp_index.values.each do |comp_uri|
      comp_file = File.join(@cache_dir, filename(comp_uri))
      download(comp_uri, comp_file)
    end
  end
def download_components ( file_uri , file ) begin comp_index = YAML . load_file ( file ) rescue => e abort "ERROR: Failed loading #{file_uri}: #{e}" end comp_index . values . each do | comp_uri | comp_file = File . join ( @cache_dir , filename ( comp_uri ) ) download ( comp_uri , comp_file ) end end
Downloads remote content referenced in component_index.yml
Downloads remote content referenced in component_index . yml
file_uri
file