NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Yet another rake and subversion task

Posted on August 5, 2006 - Filed Under Ruby

This time my first rake task – adding content to Subversion repository. I took example Ruby code given on http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion changed a little (in rake task I can not find way to read from stdin) to get input for commit message.

So, if You find useful such a code: download http://nhw.pl/download/svn.rake, put it in Yours application lib/tasks/ directory. If You have setup Your applicatio to work with Subversion, now it is enough to run rake svn COMMIT_MSG='blah, blah' add all new files and commit changes with given message.

Popularity: 3% [?]

Hits for this post: 3414

Similar Posts

Comments

Leave a Reply