Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sebastiangeiger/5708925 to your computer and use it in GitHub Desktop.

Select an option

Save sebastiangeiger/5708925 to your computer and use it in GitHub Desktop.
remove_file "README.rdoc"
create_file "README.md", "TODO"
gem 'mysql2'
gem 'devise'
gem 'cancan'
gem "slim-rails"
gem 'carrierwave'
gem 'mini_magick'
gem_group :assets do
gem 'anjlab-bootstrap-rails', '>= 2.3', :require => 'bootstrap-rails'
end
gem_group :development, :test do
gem "rspec-rails"
gem 'factory_girl_rails'
end
gem_group :test do
gem 'cucumber-rails', require: false
gem 'database_cleaner'
gem 'poltergeist'
gem 'simplecov'
gem 'selenium-webdriver'
end
gem_group :development do
gem 'pry'
gem 'launchy'
gem 'mo_deploy', :git => 'ssh://git@stash.mo-stud.io:7999/MO/deploy.git', :branch => 'develop'
gem 'meta_request'
gem 'better_errors'
gem 'binding_of_caller'
gem 'quiet_assets'
gem 'seed-fu'
gem 'faker'
gem 'letter_opener'
end
application 'config.generators.test_framework :rspec, views: false, routes: false, requests: false'
application 'config.generators.fixture_replacement :factory_girl, dir: "spec/factories"'
application 'config.generators.javascripts false'
application 'config.generators.stylesheets false'
application 'config.generators.template_engine :slim'
application 'config.generators.helper false'
application 'config.generators.assets false'
run "bundle install"
run "rm -rf test"
generate "rspec:install"
generate "cucumber:install"
generate "mo_deploy:install"
if yes? "Do you want to generate a root controller?"
name = ask("What should it be called?").underscore
generate :controller, "#{name} index"
route "root to: '#{name}\#index'"
remove_file "public/index.html"
end
git :init
append_file ".gitignore", "config/database.yml"
run "cp config/database.yml config/example_database.yml"
git add: ".", commit: "-m 'initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment