Created
June 16, 2009 05:11
-
-
Save bsy/130543 to your computer and use it in GitHub Desktop.
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
# | |
# Usage: %> rails <projectname> -m http://gist.github.com/130543.txt | |
# | |
# Install gems | |
gem 'will_paginate', :source => "http://gemcutter.org/" | |
gem "factory_girl", :source => "http://gemcutter.org/" | |
gem "formtastic", :source => "http://gemcutter.org/" | |
gem "authlogic", :source => "http://gemcutter.org/" | |
gem "rspec", :source => "http://gemcutter.org/" | |
gem "rspec-rails", :source => "http://gemcutter.org/" | |
rake("gems:install", :sudo => true) | |
# Install plugins | |
plugin 'attachment-fu', :git => 'git://github.com/technoweenie/attachment_fu.git' | |
plugin 'asset_packager', :git => 'http://synthesis.sbecker.net/pages/asset_packager' | |
plugin 'exception_notifier', :git => 'git://github.com/rails/exception_notification.git' | |
plugin 'bootstrapper', :git => 'git://github.com/sevenwire/bootstrapper.git' | |
# Cleanup unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm public/images/rails.png" | |
if yes?("Install RSpec?") | |
# plugin "rspec", :git => "git://github.com/dchelimsky/rspec.git" | |
# plugin "rspec-rails", :git => "git://github.com/dchelimsky/rspec-rails.git" | |
generate :rspec | |
end | |
if yes?("Vendor Gems?") | |
rake("gems:unpack") | |
end | |
# gitignore | |
file ".gitignore", <<-END | |
.DS_Store | |
.idea | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
db/schema.rb | |
END | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run "cp config/database.yml config/example_database.yml" | |
git :init | |
git :add => ".", :commit => "-m 'initial commit'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment