Created
September 28, 2009 03:15
-
-
Save moss/195117 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
| # The configuration I'm currently using for my Rails projects at home. | |
| # init git first so that plugins will work as submodules. | |
| git :init | |
| # plugins | |
| plugin 'time_travel', | |
| :git => "git://github.com/notahat/time_travel.git", | |
| :submodule => true | |
| # gems | |
| gem "rspec", :lib => false, :version => ">= 1.2.0" | |
| gem "rspec-rails", :lib => false, :version => ">= 1.2.0" | |
| gem "haml" | |
| gem "thoughtbot-factory_girl", :lib => "factory_girl", :source => "http://gems.github.com" | |
| gem "cucumber" | |
| # generate commands | |
| generate("rspec") | |
| generate("cucumber") | |
| # let's use rspec exclusively instead of boring old Test::Unit | |
| run "rm -rf test" | |
| run "mkdir spec/models" | |
| run "mkdir spec/models" | |
| run "mkdir spec/models" | |
| # JQuery and JQuery-form | |
| run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js > public/javascripts/jquery.js" | |
| run "curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js > public/javascripts/jquery.form.js" | |
| # git setup | |
| 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} | |
| file '.gitignore', <<-END | |
| .DS_Store | |
| log/*.log | |
| tmp/**/* | |
| config/database.yml | |
| db/*.sqlite3 | |
| END | |
| git :add => "." | |
| git :commit => "-a -m 'Initial commit.'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment