Ruby on Rails
SVN Conf Generator (Version #20)

Rails SVN Configuration Generator

Rails makes it easy to start a new application. At the same time, importing a new project into Subversion is not that simple — there are quite few files that should be ignored.

This generator adds a couple of rake commands to help with subversion.

  • rake svn:configure — configure svn:ignore properties of the project. It will set svn:ignore properties to ignore tmp/cache/, tmp/sessions/, tmp/sockets/, log/, db/schema.db, config/lighttpd.conf files. This command must be run after project is imported into svn repository.
  • rake svn:add — adds new files to subversion repository.

Instructions:

1. Install svn_conf generator


gem install --source ==http://dist.agilewebsolutions.com== svn_conf_generator
</code>
(Or, as of 2006.05.29)
<code>
gem install svn_conf_generator


gem install svn_conf_generator

2. Generate svn_conf in a new rails project (not imported into svn)


./script/generate svn_conf 

3. Run svn:configure task to create .cvsignore files


rake svn:configure 

NOTE: It is also recommended to change your ~/.subversion/config file to set global-options (Subversion Config Docs) property to something like:


global-ignores=*.log *.html-gzip-* .DS_Store </pre>

See other AvailableGenerators.

Rails SVN Configuration Generator

Rails makes it easy to start a new application. At the same time, importing a new project into Subversion is not that simple — there are quite few files that should be ignored.

This generator adds a couple of rake commands to help with subversion.

  • rake svn:configure — configure svn:ignore properties of the project. It will set svn:ignore properties to ignore tmp/cache/, tmp/sessions/, tmp/sockets/, log/, db/schema.db, config/lighttpd.conf files. This command must be run after project is imported into svn repository.
  • rake svn:add — adds new files to subversion repository.

Instructions:

1. Install svn_conf generator


gem install --source ==http://dist.agilewebsolutions.com== svn_conf_generator
</code>
(Or, as of 2006.05.29)
<code>
gem install svn_conf_generator


gem install svn_conf_generator

2. Generate svn_conf in a new rails project (not imported into svn)


./script/generate svn_conf 

3. Run svn:configure task to create .cvsignore files


rake svn:configure 

NOTE: It is also recommended to change your ~/.subversion/config file to set global-options (Subversion Config Docs) property to something like:


global-ignores=*.log *.html-gzip-* .DS_Store </pre>

See other AvailableGenerators.