Skip to content

Instantly share code, notes, and snippets.

@kubicek
Created June 11, 2009 12:49
Show Gist options
  • Save kubicek/127877 to your computer and use it in GitHub Desktop.
Save kubicek/127877 to your computer and use it in GitHub Desktop.
# Usage:
# rails project_name -m http://gist.github.com/127877.txt
git :init
run "mv README doc/README_FOR_RAILS"
run "echo 'doc/README_FOR_APP' > README"
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run "cp config/database.yml config/example_database.yml"
file ".gitignore", <<-END
.DS_Store
*/.DS_Store
log/*.log
tmp/**/*
!log/.gitignore
!tmp/.gitignore
config/database.yml
db/*.sqlite3
doc/app/
coverage
END
git :add => ".", :commit => "-m 'initial commit -- empty Rails application'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment