Skip to content

Instantly share code, notes, and snippets.

@kenchan
Forked from ukstudio/application_template.rb
Created September 13, 2009 07:09
Show Gist options
  • Save kenchan/186110 to your computer and use it in GitHub Desktop.
Save kenchan/186110 to your computer and use it in GitHub Desktop.
# 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