There is a small bug in this version: "rpush '#{@redis['namespace']}:queue:post_receive'" should go into command instead of redis_command. Besides the code duplication, this also causes default configuration (redis.empty? == true) not to take in that command.