Skip to content

Instantly share code, notes, and snippets.

@akm
Created May 29, 2011 14:20
Show Gist options
  • Select an option

  • Save akm/997810 to your computer and use it in GitHub Desktop.

Select an option

Save akm/997810 to your computer and use it in GitHub Desktop.
rails template
require 'fileutils'
FileUtils.cp("config/database.yml", "config/database.yml.example")
File.open(".gitignore", "a") do |f|
f.puts "Gemfile.lock"
f.puts ".rvmrc"
end
File.open("config/.gitignore", "a"){|f| f.puts("*.example")}
gem 'factory_girl_rails', :group => [:development, :test]
gem 'rails3-generators', :group => [:development, :test]
gem 'rspec', '>= 2.6.0.rc2', :group => [:development, :test]
gem 'rspec-rails', :group => [:development, :test]
gem 'capybara', :group => [:development, :test]
gem 'cucumber', :group => [:development, :test]
gem 'cucumber-rails', :group => [:development, :test]
gem 'database_cleaner', :group => [:development, :test]
gem 'launchy', :group => [:development, :test]
gem 'pickle', :group => [:development, :test]
gem 'pickle_i18n', '0.0.3', :group => [:development, :test]
git :init
git :add => "."
git :commit => "-m 'initial commit by using https://gist.github.com/gists/997810'"
run "rvm gemset create #{app_name}"
rvm_command = "rvm 1.9.2-head@#{app_name}"
create_file(".rvmrc", rvm_command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment