Sha256: 67f4e02783cb76cbcd93e11ba2b5ee93247cf993471495ed5159c75d4bb11df1
Contents?: true
Size: 750 Bytes
Versions: 7
Compression:
Stored size: 750 Bytes
Contents
#-- ## Riassence Framework # 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
7 entries across 7 versions & 1 rubygems