Created
October 23, 2009 14:49
-
-
Save toland/216953 to your computer and use it in GitHub Desktop.
My 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
# Remove unnecessary Rails files | |
run 'rm README' | |
run 'rm public/index.html' | |
run 'rm public/favicon.ico' | |
run 'rm public/images/rails.png' | |
# Copy database.yml | |
run 'cp config/database.yml config/database.yml.example' | |
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com' | |
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com' | |
gem 'erubis' | |
gem 'cucumber' | |
gem 'webrat' | |
gem 'rspec' | |
gem 'rspec-rails' | |
# Run rspec generator | |
generate("rspec") | |
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js" | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
# Create .gitignore file | |
file '.gitignore', <<-FILE | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
*.tmproj | |
FILE | |
# Set up git repository | |
git :init | |
git :add => '.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment