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-1.14.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.14.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.2 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.1 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.13.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.2 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.1 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.12.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.11.0 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.11.0 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.10.2 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.10.2 generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.10.1 lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
rubber-1.10.1 generators/vulcanize/templates/resque/config/initializers/resque.rb