module Resque::Plugins::RealSerialQueues
Constants
- VERSION
Attributes
non_serial_queues[RW]
Public Class Methods
config=(config_hash)
click to toggle source
# File lib/resque/plugins/real_serial_queues.rb, line 56 def self.config=(config_hash) if config_hash self.check_if_config_is_valid(config_hash) self.non_serial_queues = config_hash[:non_serial_queues] end end
Private Class Methods
check_if_config_is_valid(config_hash)
click to toggle source
# File lib/resque/plugins/real_serial_queues.rb, line 65 def self.check_if_config_is_valid(config_hash) if !config_hash.is_a?(Hash) fail( InvalidConfigurationError, 'Something is wrong with your config file. Sorry...' ) elsif config_hash[:non_serial_queues] && !config_hash[:non_serial_queues].is_a?(Array) fail( InvalidConfigurationError, 'Please specify non-serial queue names in an array ' + '(or collection if you are using YAML: http://yaml4r.' + 'sourceforge.net/doc/page/collections_in_yaml.htm)' ) end end