box-o-sand/map-mash/config/initializers/redis_conf.rb

9 lines
216 B
Ruby
Raw Normal View History

2012-04-04 03:02:32 +00:00
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