Skip to content

Instantly share code, notes, and snippets.

@okiess
Created January 4, 2010 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save okiess/268545 to your computer and use it in GitHub Desktop.
Save okiess/268545 to your computer and use it in GitHub Desktop.
Rails3 Pre with Bundler Rails Template
############## commands #################
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}
run "rm .gitignore"
file '.gitignore', <<-ENDEND
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
vendor/rails
vendor/gems/*
ENDEND
run "rm README"
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/favicon.ico"
############## rails 3 pre #################
run "rm Gemfile"
run "cd vendor && git clone git://github.com/rails/rails.git"
file 'Gemfile', <<-ENDEND
directory "vendor/rails", :glob => "{*/,}*.gemspec"
git "git://github.com/rails/arel.git"
git "git://github.com/rails/rack.git"
gem "rails", "3.0.pre"
ENDEND
run "gem bundle"
############## git #################
run "git init"
run "git add ."
run 'git commit -a -m"Initial Import"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment