Sha256: b1f2b693479962249779a6804f9473c99103b8df3cbca92a317b12cc56cc700f
Contents?: true
Size: 463 Bytes
Versions: 35
Compression:
Stored size: 463 Bytes
Contents
require "redis" require "net/http" class ErrorJob @queue = :critical def self.perform if ENV.key?('REDIS_URL') redis = Redis.new(:url => ENV['REDIS_URL']) elsif ENV.key?('I_REDIS_URL') redis = Redis.new(:url => ENV['I_REDIS_URL']) else redis = Redis.new(:url => 'localhost:6379') end dt = Time.now redis.set('ts', dt) raise Exception.new("Silly Rabbit, Trix are for kids.") redis.set(:nb_id, 2) end end
Version data entries
35 entries across 35 versions & 1 rubygems