Skip to content

Instantly share code, notes, and snippets.

@boffbowsh
Forked from andrew/rails_template.rb
Created June 15, 2009 15:50
Show Gist options
  • Save boffbowsh/130180 to your computer and use it in GitHub Desktop.
Save boffbowsh/130180 to your computer and use it in GitHub Desktop.
# Delete unnecessary files
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/javascripts/prototype.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/controls.js"
# Copy database.yml for distribution use
run "cp config/database.yml config/database.yml.example"
# Plugins
plugin 'make_resourceful', :git => "git://github.com/hcatlin/make_resourceful.git"
plugin 'permalink_fu', :git => "git://github.com/technoweenie/permalink_fu.git"
plugin 'hoptoad_notifier', :git => "git://github.com/thoughtbot/hoptoad_notifier.git"
plugin 'role_requirement', :git => 'git://github.com/timcharper/role_requirement.git'
plugin 'restful_authentication', :git => 'git://github.com/technoweenie/restful-authentication.git'
generate 'authenticated --skip-routes user sessions'
generate 'roles Role User'
# Gems
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => "http://gems.github.com"
gem 'will_paginate'
gem 'haml'
gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com'
gem "jchupp-is_paranoid", :lib => 'is_paranoid', :source => 'http://gems.github.com'
# Commands
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.js > public/javascripts/jquery.js"
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
# Set up git repository and Commit all work so far to the repository
git :init
plugin 'cms_admin', :git => '[email protected]:rawnet/cms_admin.git', :submodule => true
rake 'rawnet:sync_engine_data'
rake 'db:create'
rake 'db:migrate'
git :add => '.'
git :commit => "-a -m 'Initial commit'"
# Success!
puts "SUCCESS!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment