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-jcarnegie-0.0.1 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-jcarnegie-0.0.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.9.1 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.9.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.9.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.9.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.8.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.8.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
nogara-rubber-1.7.2 generators/vulcanize/templates/resque/config/initializers/resque.rb
nogara-rubber-1.7.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.2 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.1 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.7.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.6.3 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.6.3 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.6.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.6.2 generators/vulcanize/templates/resque/config/initializers/resque.rb