def download_source
      Log.debug { "         Reading #{@source.url.green}" }
      zip = Tempfile.new('gtfs')
      zip.binmode
      zip << open(@source.url).read
      zip.rewind

      extract_to_tempfiles(zip)

      Log.debug { "Finished reading #{@source.url.green}" }
    rescue StandardException => e
      Log.error(e.message)
      raise e
    ensure
      zip.try(:close)
    end
def download_source
      Log.debug { "         Reading #{@source.url.green}" }
      zip = Tempfile.new('gtfs')
      zip.binmode
      zip << open(@source.url).read
      zip.rewind

      extract_to_tempfiles(zip)

      Log.debug { "Finished reading #{@source.url.green}" }
    rescue StandardException => e
      Log.error(e.message)
      raise e
    ensure
      zip.try(:close)
    end
Download the data from the remote server