Skip to content

Instantly share code, notes, and snippets.

@tan3
Last active August 29, 2015 14:18
Show Gist options
  • Save tan3/c35f7341ab03f718f648 to your computer and use it in GitHub Desktop.
Save tan3/c35f7341ab03f718f648 to your computer and use it in GitHub Desktop.
Rails: Base Template
remove_file "README.rdoc"
application do
'config.generators do |g|
g.helper false
g.assets false
g.template_engine :haml
g.test_framework false
end'
end
# default gems
gem 'haml-rails'
gem_group :development do
gem 'html2haml'
gem 'quiet_assets'
gem 'rails_layout'
gem 'better_errors'
gem 'binding_of_caller'
gem 'annotate'
end
run "bundle install"
generate 'annotate:install'
if yes? "Foundation 5 benutzen ? (yes/N)"
gem 'foundation-rails'
gem 'simple_form'
run "bundle install"
generate "layout:install foundation5"
generate "simple_form:install --foundation"
end
if yes? "Rspec Testing einrichten ? (yes/N)"
gem "rspec-rails", group: [:test, :development]
run "bundle install"
generate "rspec:install"
end
if yes? "Git-Repository einrichten ? (yes/N)"
git :init
append_file ".gitignore", "config/database.yml"
run "cp config/database.yml config/example_database.yml"
git :add => "."
git :commit => "-m 'initial commit'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment