Created
November 12, 2009 18:35
-
-
Save ambethia/233148 to your computer and use it in GitHub Desktop.
Rake: Copy configuration files from templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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