Skip to content

Instantly share code, notes, and snippets.

@mtsmfm
Created June 30, 2013 15:58
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 mtsmfm/5895711 to your computer and use it in GitHub Desktop.
Save mtsmfm/5895711 to your computer and use it in GitHub Desktop.
Rails application template
gem 'haml-rails'
gem 'omniauth'
gem_group :development, :test do
gem 'rspec-rails'
gem 'factory_girl_rails'
gem 'guard-rspec'
gem 'database_cleaner'
gem 'erb2haml'
end
gem_group :test do
gem 'capybara'
gem 'cucumber-rails', require: false
gem 'spring'
gem 'pry'
end
run "bundle install"
generate "rspec:install"
generate "cucumber:install"
run "bundle exec guard init rspec"
gsub_file "config/database.yml", /(username: ).*$/, '\1postgres'
rake 'haml:replace_erbs'
git :init
git add: "."
git commit: %{ -m 'Initial commit' }
@mtsmfm
Copy link
Author

mtsmfm commented Jun 30, 2013

rails new . -m ../template.rb -T -d=postgresql -B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment