Sha256: 6e959a117ff3b6d8ae425111f6e2da68b12f34920445a837ccad72aa1e4987ba
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fourchette-0.1.4 | lib/fourchette/web/tarball.rb |
fourchette-0.1.3 | lib/fourchette/web/tarball.rb |