Sha256: f3785664ee9b173d81780943f525e09c892f8eabea6654d1f2b6eb3db19577df
Contents?: true
Size: 353 Bytes
Versions: 5
Compression:
Stored size: 353 Bytes
Contents
get '/:github_user/:github_repo/:uuid/:expiration_timestamp' do if params['expiration_timestamp'].to_i < Time.now.to_i status 404 'Oops...' else logger.info('Serving a tarball!') filepath = Fourchette::Tarball.new.filepath(params['uuid'], params['expiration_timestamp']) send_file filepath, :type => 'application/x-tgz' end end
Version data entries
5 entries across 5 versions & 1 rubygems