Skip to content

Instantly share code, notes, and snippets.

@ambethia
Created November 12, 2009 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambethia/233148 to your computer and use it in GitHub Desktop.
Save ambethia/233148 to your computer and use it in GitHub Desktop.
Rake: Copy configuration files from templates
namespace :config do
desc "Copy configuration files from templates"
task :copy do
for file in Dir.glob("config/*.tpl") do
system "cp -vi #{file} config/#{File.basename(file,".tpl")}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment