You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
216 B
9 lines
216 B
13 years ago
|
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
|