Created
February 19, 2010 11:40
-
-
Save func09/308647 to your computer and use it in GitHub Desktop.
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
# Copy database.yml | |
run "cp config/database.yml config/database.yml.sample" | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
# Add .gitignore | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
file '.gitignore', <<-END | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
db/schema.rb | |
END | |
# Commit git | |
git :init | |
git :add => "." | |
git :commit => "-a -m 'First commit.'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment