Skip to content

Instantly share code, notes, and snippets.

@paulbjensen
Created March 26, 2009 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulbjensen/86118 to your computer and use it in GitHub Desktop.
Save paulbjensen/86118 to your computer and use it in GitHub Desktop.
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