Skip to content

Instantly share code, notes, and snippets.

@spraints
Created February 11, 2009 21:31
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 spraints/62279 to your computer and use it in GitHub Desktop.
Save spraints/62279 to your computer and use it in GitHub Desktop.
# Use like this:
# ruby ~/src/ext/rails/railties/bin/rails APP -m ~/src/misc/mabrails.rb
inside('vendor') do
run 'ln -s ~/src/ext/rails rails'
end
file '.gitignore', <<END_IGNORE
.*.swp
log
tmp
db/schema.rb
db/*.sqlite3
END_IGNORE
git :init
git :add => '.'
git :commit => "-m 'Initial commit'"
plugin 'haml', :submodule => true,
:git => 'git://github.com/nex3/haml.git'
plugin 'context', :submodule => true,
:git => 'git://github.com/jeremymcanally/context.git'
plugin 'restful-authentication', :submodule => true,
:git => 'git://github.com/technoweenie/restful-authentication.git'
plugin 'will_paginate', :submodule => true,
:git => 'git://github.com/mislav/will_paginate.git'
plugin 'exception_notifier', :submodule => true,
:git => 'git://github.com/rails/exception_notification.git'
rake 'gems:install', :sudo => true
# Set up context
first = true ; gsub_file('test/test_helper.rb', /^/) { |m| ok = first ; first = false ; ok ? "require 'context'\n" : "" }
generate 'authenticated', 'user session'
git :add => '.'
git :commit => "-m 'Installed some plugins and gems.'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment