Created
May 22, 2013 01:41
-
-
Save yorzi/5624669 to your computer and use it in GitHub Desktop.
copies the config/*.example.yml files be the usable config/*.yml versions
This file contains 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 :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