Sha256: acdb518831082ce74e8a4e0a96945fd43933e406a119ce11d4faf7ea64a31ed2

Contents?: true

Size: 344 Bytes

Versions: 26

Compression:

Stored size: 344 Bytes

Contents

require 'resque'
config = YAML.load(ERB.new(IO.read(File.join(Rails.root, 'config', 'redis.yml'))).result)[Rails.env].with_indifferent_access
Resque.redis = Redis.new(host: config[:host], port: config[:port], thread_safe: true)

Resque.inline = Rails.env.test?
Resque.redis.namespace = "#{CurationConcerns.config.redis_namespace}:#{Rails.env}"

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
curation_concerns-0.14.0.pre3 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.14.0.pre2 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.14.0.pre1 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.13.1 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.13.0 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre9 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre8 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre7 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre6 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre5 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre4 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre3 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-0.12.0.pre2 lib/generators/curation_concerns/templates/config/resque_config.rb
curation_concerns-models-0.12.0.pre1 lib/generators/curation_concerns/models/templates/config/resque_config.rb
curation_concerns-models-0.11.0 lib/generators/curation_concerns/models/templates/config/resque_config.rb
curation_concerns-models-0.11.0.rc1 lib/generators/curation_concerns/models/templates/config/resque_config.rb
curation_concerns-models-0.10.0 lib/generators/curation_concerns/models/templates/config/resque_config.rb
curation_concerns-models-0.9.0 lib/generators/curation_concerns/models/templates/config/resque_config.rb
curation_concerns-models-0.8.0 lib/generators/curation_concerns/models/templates/config/resque_config.rb