Module: Creeper::Legacy::WorkerMethods

Included in:
Worker::ClassMethods
Defined in:
lib/creeper/legacy.rb

Instance Method Summary collapse

Instance Method Details

#creeper_legacy_queue(tube = nil) ⇒ Object



36
37
38
39
40
41
# File 'lib/creeper/legacy.rb', line 36

def creeper_legacy_queue(tube = nil)
  return @creeper_legacy_queue if tube.nil?
  (@creeper_legacy_queue = tube).tap do
    Creeper.job_descriptions[@creeper_legacy_queue] = self
  end
end