Created
March 22, 2012 17:55
-
-
Save epogue/2161069 to your computer and use it in GitHub Desktop.
Rails 3 app template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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