Skip to content

cjohansen.no

svn_import

Imports a rails project into subversion (excluding tmp files, logs and more) and converts the current directory to a working copy of that project.

SvnImport goes a little bit further than just adding everything; it ignores resources such as logs, tmp files and database.yml and environment.rb.

For the database.yml and environment.rb files, SvnImport creates template files, and provides a task for copying them back after checkout. This allows each developer to have their own database settings and/or keep the password for the production database out of version control.

Installation

script/plugin install http://svn.cjohansen.no/rails/plugins/svn_import/trunk

Usage

rake svn:import

This task will only successfully run once - before the applicaton has been added to subversion. Once it's been added, the task will no longer do anything. When a new developer checks out the project, she can get the standard setup by doing:

rake svn:setup

2006 - 2012 Christian Johansen Creative Commons License