-
-
Save kenchan/186110 to your computer and use it in GitHub Desktop.
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
# 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