Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ x"" == x"$1" ]; then
- echo "Usage: $0 PROJECT_NAME"
- exit
- fi
- rails $1
- cd $1
- for d in $(find -type d -empty); do touch $d/.git_placeholder; done
- echo "*" > log/.gitignore
- echo "rails" > vendor/.gitignore
- echo "*.sqlite3" > db/.gitignore
- git init
- git add .
- git ci -m 'Initial commit'
- ./script/plugin install git://github.com/dchelimsky/rspec.git
- ./script/plugin install git://github.com/dchelimsky/rspec-rails.git
- git add .
- git ci -m 'Add rspec plugin'
- ./script/generate rspec
- git add .
- git ci -m 'Generate rspec'
- git rm public/index.html
- git ci -m 'Delete index.html'
Add Comment
Please, Sign In to add comment