Skip to content

Instantly share code, notes, and snippets.

@rockydd
Created February 22, 2010 09:02
Show Gist options
  • Save rockydd/310948 to your computer and use it in GitHub Desktop.
Save rockydd/310948 to your computer and use it in GitHub Desktop.
#file ".gitignore", <<-END
#.DS_Store
#log/*.log
#tmp/**/*
#config/database.yml
#db/*.sqlite3
#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.'"
generate :controller, "welcome index"
route "map.root :controller => 'welcome'"
git :rm => "public/index.html"
git :add => ".", :commit => "-m 'adding welcome controller.'"
generate :nifty-layout
gem 'RedCloth', :lib => 'redcloth'
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
rake gems:install
if yes?("Do you want to use RSpec?")
plugin "rspec", :git => "git://github.com/dchelimsky/rspec.git"
plugin "rspec-rails", :git => "git://github.com/dchelimsky/rspec-rails.git"
generate :rspec
end
name = ask("What would you like the user to be called?")
generate :nifty_authentication, name
rake "db:migrate"
git :add => ".", :commit => "-m 'adding authentication'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment