Skip to content

Instantly share code, notes, and snippets.

@yorzi
Created May 22, 2013 01:41
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 yorzi/5624669 to your computer and use it in GitHub Desktop.
Save yorzi/5624669 to your computer and use it in GitHub Desktop.
copies the config/*.example.yml files be the usable config/*.yml versions
namespace :development do
desc "copies the config/*.example.yml files be the usable config/*.yml versions"
task :configure do
Dir.glob('config/*.yml.example').each do |filename|
sh "cp #{filename} #{filename.gsub('.example', '')}"
end
end
task :configure_all_but_database do
(Dir.glob('config/*.yml.example') - ["config/database.yml.example"]).each do |filename|
sh "cp #{filename} #{filename.gsub('.example', '')}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment