Created
January 4, 2010 14:44
-
-
Save okiess/268545 to your computer and use it in GitHub Desktop.
Rails3 Pre with Bundler Rails Template
This file contains hidden or 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
############## commands ################# | |
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} | |
run "rm .gitignore" | |
file '.gitignore', <<-ENDEND | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
vendor/rails | |
vendor/gems/* | |
ENDEND | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/favicon.ico" | |
############## rails 3 pre ################# | |
run "rm Gemfile" | |
run "cd vendor && git clone git://github.com/rails/rails.git" | |
file 'Gemfile', <<-ENDEND | |
directory "vendor/rails", :glob => "{*/,}*.gemspec" | |
git "git://github.com/rails/arel.git" | |
git "git://github.com/rails/rack.git" | |
gem "rails", "3.0.pre" | |
ENDEND | |
run "gem bundle" | |
############## git ################# | |
run "git init" | |
run "git add ." | |
run 'git commit -a -m"Initial Import"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment