Skip to content

Instantly share code, notes, and snippets.

@joker1007
Created September 1, 2010 15:17
Show Gist options
  • Save joker1007/560839 to your computer and use it in GitHub Desktop.
Save joker1007/560839 to your computer and use it in GitHub Desktop.
# 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