box-o-sand/config/initializers/redis_conf.rb
2012-04-03 23:02:32 -04:00

9 lines
216 B
Ruby

require 'erb'
File.open(Rails.root.join('config/redis.conf.erb'), 'r') do |f|
tmpl = ERB.new(f.read)
File.open(Rails.root.join('config/redis.conf'), 'w') do |conf|
conf.write(tmpl.result(binding))
end
end