class Queuel::IronMq::Engine
Constants
- IronMqMissingError
Private Instance Methods
client_klass()
click to toggle source
# File lib/queuel/iron_mq/engine.rb, line 21 def client_klass if defined?(::IronMQ::Client) try_typhoeus ::IronMQ::Client else begin logger.info "Loading IronMQ..." require 'iron_mq' ::IronMQ::Client rescue LoadError logger.error "Couldn't find iron_mq gem" raise(IronMqMissingError) end end end
try_typhoeus()
click to toggle source
# File lib/queuel/iron_mq/engine.rb, line 12 def try_typhoeus require 'typhoeus' true rescue LoadError logger.warn "Typhoeus not found..." logger.warn "Typhoeus is recommended for IronMQ" false end