git-subtree-dir: map-mash git-subtree-mainline: eacc351b17aef1e36dd67b46625d6f9243988b43 git-subtree-split: 7f16409d1257e7471fef35c18bcdf32856b908e3
9 lines
216 B
Ruby
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
|