diff --git a/README.markdown b/README.markdown index 7ad832f..f1ef899 100644 --- a/README.markdown +++ b/README.markdown @@ -11,4 +11,5 @@ Current library * daring by Peter Cooper * suspenders by Nathan Esquenazi (based on Suspenders template by Thoughtbot) * newgit by Joao Vitor -* facebook by Mark Daggett \ No newline at end of file +* facebook by Mark Daggett +* sethbc by Seth Chandler diff --git a/sethbc.rb b/sethbc.rb new file mode 100644 index 0000000..0ea4926 --- /dev/null +++ b/sethbc.rb @@ -0,0 +1,63 @@ +# Link to local copy of edge rails +inside('vendor') { run 'ln -s ~/Development/rails/rails rails' } + +# Delete unnecessary files +run "rm README" +run "rm doc/README_FOR_APP" +run "rm public/index.html" +run "rm public/favicon.ico" +run "rm public/robots.txt" + +# Set up git repository +git :init + +# Copy database.yml for distribution use +run "cp config/database.yml config/database.yml.example" + +# Set up .gitignore files +run %{find . -type d -empty | xargs -I xxx touch xxx/.gitignore} +file '.gitignore', <<-END +.DS_Store +coverage/* +log/*.log +db/*.db +db/*.sqlite3 +db/schema.rb +tmp/**/* +doc/api +doc/app +config/database.yml +coverage/* +END + +# Install plugins as git submodules +plugin 'acts_as_taggable_redux', :git => 'git://github.com/geemus/acts_as_taggable_redux.git', :submodule => true +plugin 'exception_notifier', :git => 'git://github.com/rails/exception_notification.git', :submodule => true +plugin 'asset_packager', :git => 'git://github.com/sbecker/asset_packager.git', :submodule => true +plugin 'authlogic', :git => 'git://github.com/binarylogic/authlogic.git', :submodule => true +plugin 'shoulda', :git => 'git://github.com/thoughtbot/shoulda.git', :submodule => true +plugin 'factory_girl', :git => 'git://github.com/thoughtbot/factory_girl.git', :submodule => true +plugin 'quietbacktrace', :git => 'git://github.com/thoughtbot/quietbacktrace.git', :submodule => true +plugin 'rr', :git => 'git://github.com/btakita/rr.git', :submodule => true +plugin 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :submodule => true + +# Install all gems +gem 'RedCloth' + +# Initialize submodules +git :submodule => "init" + +rake('gems:install', :sudo => true) + +# Set up sessions, RSpec, user model, OpenID, etc, and run migrations +rake('db:sessions:create') +generate("authlogic", "user session") +rake('acts_as_taggable:db:create') +rake('db:migrate') + +# Commit all work so far to the repository +git :add => '.' +git :commit => "-a -m 'Initial commit'" + +# Success! +puts "SUCCESS!"