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

Version Path
rubber-2.0.3 templates/resque/config/initializers/resque.rb
rubber-2.0.2 templates/resque/config/initializers/resque.rb
rubber-2.0.1 templates/resque/config/initializers/resque.rb
rubber-2.0.0 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre12 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre11 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre10 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre9 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre8 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre7 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre6 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre5 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre4 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre3 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre2 templates/resque/config/initializers/resque.rb
rubber-2.0.0.pre1 templates/resque/config/initializers/resque.rb
rubber-1.15.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.15.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.14.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.14.1 generators/vulcanize/templates/resque/config/initializers/resque.rb