module DispatchRider module QueueServices class FileSystem < Base class FsReceivedMessage < ReceivedMessage attr_reader :queue def initialize(message, item, queue) @queue = queue super(message, item) end def extend_timeout(timeout) #file system doesn't support timeouts on items, so we ignore this. end def return_to_queue queue.put_back(item) end def receive_count 1 # can't really check that in this service end def sent_at @item.ctime end def queue_name File.basename(File.dirname(@item.path)) end end end end end