Created
March 26, 2009 14:12
-
-
Save paulbjensen/86118 to your computer and use it in GitHub Desktop.
This file contains 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
git :init | |
submodule = yes?("Do you love submodules?") ? true : false | |
[ ['rspec', 'git://github.com/dchelimsky/rspec.git'], | |
['rspec-rails', 'git://github.com/dchelimsky/rspec-rails.git'], | |
['resource_controller', 'git://github.com/giraffesoft/resource_controller.git'], | |
['cucumber', 'git://github.com/aslakhellesoy/cucumber.git'], | |
['paperclip', 'git://github.com/thoughtbot/paperclip.git'], | |
['exception_notifier', 'git://github.com/rails/exception_notification.git'], | |
['jrails', 'git://github.com/aaronchi/jrails.git'] | |
].each {|o| plugin o[0], :git => o[1], :submodule => submodule} | |
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com' | |
rake("gems:install", :sudo => true) | |
generate("rspec") | |
generate("cucumber") | |
run "haml --rails #{run "pwd"}" | |
run "cp config/database.yml config/example_database.yml" | |
%w{index.html favicon.ico robots.txt}.each{|o| run "rm public/#{o}"} | |
%w{dragdrop controls effects prototype}.each do |o| | |
run "rm public/javascripts/#{o}.js" | |
end | |
run "echo TODO > README" | |
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