Created
September 1, 2010 15:17
-
-
Save joker1007/560839 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.sample.yml" | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
# Set up git | |
git :init | |
git :add => '.' | |
# Install plugins | |
# plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git', :submodule => true | |
# plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git', :submodule => true | |
# plugin 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators.git', :submodule => true | |
# Add .gitignore | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
file '.gitignore', <<-END | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
db/schema.rb | |
END | |
# Execute generator | |
generate :rspec | |
generate :i18n, "ja" | |
# Commit git | |
git :submodule => "init" | |
git :add => "." | |
git :commit => "-a -m 'First commit.'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment