Sha256: 27d1923964f592a5e1456917cf19ad9a937fbb6211a551ee1f64994fc5f2a981

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

# This isn't a queue at all, it just writes to standard output.
# 
# It might be useful for testing.
# 
class JobQueue::VerboseAdapter
  def initialize(options = {})
    
  end
  
  def put(string)
    JobQueue.logger.debug "===== NEW JOB ADDED TO QUEUE ===="
    JobQueue.logger.debug string
    JobQueue.logger.debug "===== END OF MESSAGE ============"
  end
  
  def subscribe(error_report, &block)
    raise "Not implemented. Use a better adapter!!"
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mloughran-job_queue-0.0.4 lib/job_queue/adapters/verbose_adapter.rb
mloughran-job_queue-0.0.5 lib/job_queue/adapters/verbose_adapter.rb
mloughran-job_queue-0.0.6 lib/job_queue/adapters/verbose_adapter.rb
mloughran-job_queue-0.0.7 lib/job_queue/adapters/verbose_adapter.rb
mloughran-job_queue-0.0.8 lib/job_queue/adapters/verbose_adapter.rb
newbamboo-job_queue-0.0.5 lib/job_queue/adapters/verbose_adapter.rb
newbamboo-job_queue-0.0.6 lib/job_queue/adapters/verbose_adapter.rb
newbamboo-job_queue-0.0.7 lib/job_queue/adapters/verbose_adapter.rb
newbamboo-job_queue-0.0.8 lib/job_queue/adapters/verbose_adapter.rb