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.
|
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
|