Skip to content

Instantly share code, notes, and snippets.

@mereghost
Created February 17, 2009 21:00
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 mereghost/65970 to your computer and use it in GitHub Desktop.
Save mereghost/65970 to your computer and use it in GitHub Desktop.
#This is a sample RoR template to be used on my projects.
run "echo Nothing Here Right Now > README"
if yes?("Use rbates nifty layout?")
generate :nifty_layout
end
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
gem 'redcloth', :lib => 'RedColth'
rake 'gems:install'
# need to check if RSpec & RSpec-Rails is installed.
#If you know a better alternative, let me know.
if yes?("Use RSpec?")
begin
gem 'rspec'
rescue Gem::LoadError
plugin "rspec", :git => "git://github.com/dchelimsky/rspec.git"
end
begin
gem 'rspec-rails'
rescue Gem::LoadError
plugin "rspec-rails", :git => "git://github.com/dchelimsky/rspec-rails.git"
end
generate :rspec
end
begin
gem 'capistrano'
if yes?("Capify that?")
run "capify ."
end
rescue Gem::LoadError
puts "Cannot capify. Capistrano not found!"
end
git :init
file '.gitinore', <<EOF
log/*.log
tmp/**/*
config/database.yml
config/deploy.rb
EOF
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run "cp config/database.yml config/example_database.yml"
run "cp config/deploy.rb config/example_deploy.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment