class Rsrb::Net::JaggrabConnection
Constants
- INDEX
- LOG
- PATHS
Public Instance Methods
fix_path(path)
click to toggle source
# File lib/rsrb/net/jaggrab.rb, line 49 def fix_path(path) match = PATHS.find {|k, v| path =~ k } match ? match[1] : path end
receive_line(line)
click to toggle source
# File lib/rsrb/net/jaggrab.rb, line 33 def receive_line(line) line = line.strip if line =~ /^JAGGRAB \/(.*)$/ path = fix_path($1) LOG.debug "serving '#{path}' via JAGGRAB" if INDEX.include?(path) ind = INDEX[path] send_data $cache.get(0, ind) end end end