Skip to content

Instantly share code, notes, and snippets.

@epogue
Created March 22, 2012 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epogue/2161069 to your computer and use it in GitHub Desktop.
Save epogue/2161069 to your computer and use it in GitHub Desktop.
Rails 3 app template
require 'open-uri'
run "rm public/index.html"
run "rm .gitignore"
rake "db:migrate"
file ".gitignore", <<-CODE
#{URI.parse("https://raw.github.com/github/gitignore/master/Rails.gitignore").read}
*.sublime-workspace
CODE
file "#{app_name}.sublime-project", <<-CODE
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": ["tmp", ".bundle"],
"file_exclude_patterns": ["*.scssc"]
}
]
}
CODE
gem_group :development, :test do
gem 'rspec-rails'
gem 'factory_girl_rails'
end
gem_group :test do
gem 'webrat'
gem 'shoulda-matchers'
end
run "bundle install"
generate "rspec:install"
git :init
git :add => "."
git :commit => "-a -m 'Initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment