Sha256: 9ebaae0856b399757371bddc7763456c8c03e4dd8a4128fc04c9c1e1207d09ba
Contents?: true
Size: 368 Bytes
Versions: 96
Compression:
Stored size: 368 Bytes
Contents
require 'yaml' require 'resque' rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..' rails_env = ENV['RAILS_ENV'] || 'development' redis_host = 'localhost:6379' resque_yml = rails_root + '/config/resque.yml' if File.exist? resque_yml resque_config = YAML.load_file(resque_yml) redis_host = resque_config[rails_env] end Resque.redis = redis_host
Version data entries
96 entries across 56 versions & 6 rubygems