Sha256: 0c7548f4d6d359e681aa603842c786289a802af9cab55ccb051eb84f25d9430e

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

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 = "#{Sufia.config.redis_namespace}:#{Rails.env}"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-models-6.7.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.4.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.3.0 lib/generators/sufia/models/templates/config/resque_config.rb