Sha256: 736b9ac40c6d17d03af830f2d71573668a7ddd58a1dc6ae4da69637234e4176c
Contents?: true
Size: 737 Bytes
Versions: 5
Compression:
Stored size: 737 Bytes
Contents
#-- ## RSence # Copyright 2008 Riassence Inc. # http://riassence.com/ # # You should have received a copy of the GNU General Public License along # with this software package. If not, contact licensing@riassence.com ## #++ module TicketService module Rsrc # Removes static data by ID. def del_rsrc( rsrc_id ) @raw_uris.delete( rsrc_id ) end # Serves static resources. ID returned by function. def serve_rsrc( content, content_type ) rsrc_id = @randgen.gen #puts "rsrc_id: #{rsrc_id.inspect}" content_size = content.size.to_s @raw_uris[rsrc_id] = [content_type,content_size,content] uri = File.join(::RSence.config[:broker_urls][:d],rsrc_id) end end end
Version data entries
5 entries across 5 versions & 1 rubygems