Sha256: bd1d7d91efa3acb628eb353e9475d7f1121a8502281a9fd7fc9c704f595d8bb0

Contents?: true

Size: 317 Bytes

Versions: 8

Compression:

Stored size: 317 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

8 entries across 8 versions & 2 rubygems

Version Path
sufia-models-6.2.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.1.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.0.0 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-6.0.0 sufia-models/lib/generators/sufia/models/templates/config/resque_config.rb
sufia-6.0.0.rc4 sufia-models/lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.0.0.rc4 lib/generators/sufia/models/templates/config/resque_config.rb
sufia-6.0.0.rc3 sufia-models/lib/generators/sufia/models/templates/config/resque_config.rb
sufia-models-6.0.0.rc3 lib/generators/sufia/models/templates/config/resque_config.rb