method

cache_update_path

cache_update_path(uri, path = nil, update = true)
public

No documentation available.

# File lib/rubygems/test_utilities.rb, line 74
  def cache_update_path uri, path = nil, update = true
    if data = fetch_path(uri)
      open(path, 'wb') { |io| io.write data } if path and update
      data
    else
      Gem.read_binary(path) if path
    end
  end