Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Copy database.yml
run 'cp config/database.yml config/database.yml.example'
# Delete unnecessary files
run 'rm public/index.html'
# Install gems
gem 'amatsuda-i18n_generators', :source => 'http://gems.github.com', :lib => false
gem 'rspec-rails', :lib => false
gem 'cucumber', :lib => false
gem 'rspec', :lib => false
gem 'haml', :lib => false
gem 'moro-miso', :lib => false
rake('gems:install', :sudo => false) if yes?("必要なgemをインストールしますか?(y/n)")
# Git init
file '.gitignore', <<-END
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
END
git :init
git :add => "."
git :commit => "-a -m 'initial commit'"
# Generate
generate :rspec
generate :cucumber
generate :i18n, 'ja'
generate :miso
git :add => "."
git :commit => "-a -m 'generate rspec, cucumber, i18n, miso'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.