[TxMt] SVN support for Rails generators

Sebastian Friedrich sebastian at feldpost.com
Tue Apr 11 05:27:13 UTC 2006


Duane,

since most people prolly manage their rails projects with subversion,  
do you think you could add an --svn option for the Rails generators?

I guess, this little edit in generator.rb should do the job by simply  
applying the --svn flag for all projects under subversion (testing  
for .svn folder in the app root):

svn_option = File.exist?("#{rails_root}/.svn")  ? "--svn" : ""
command = "\"script/generate\" #{generators[choice].name} # 
{svn_option} #{name} #{options}"


Thanks,
Sebastian



  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svn.diff
Type: application/octet-stream
Size: 586 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060411/54ce6e8d/attachment.diff>


More information about the textmate mailing list