gabriel.birke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-30 08:32 UTC
Capistrano: Providing Options for SVN
Hello! Is there a way to provide options to the SVN call, for example the "--no-auth-cache" option when checking out? Thanks, Gabriel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Yes, but not easily. We wrote a wrapper that uses Capistrano''s CLI interface (and the straight libraries) and so we overrode many of the svn tasks. For instance, here''s one you''ll have to change: module Capistrano module SCM class Subversion < Base private def svn_log(path) `svn log -q --limit 1 #{path} --username #{svn_username} --password #{svn_password} --no-auth-cache` end end end end p.s. this adds needed username and password, now that you''re not auth-caching -- hmmm, I should just submit a patch that lets you specify options to svn, shouldn''t I? Just curious, why do you need this? cheers, hope that helps, -- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com On 9/30/06, gabriel.birke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <gabriel.birke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello! > > Is there a way to provide options to the SVN call, for example the > "--no-auth-cache" option when checking out? > > Thanks, > > Gabriel > > > > >-- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hello, I have two models, the Person and the Role/s (of this Person) with a m:n relation. The Role model uses STI (CustomerRole, EmployeeRole > ManagerRole) with different sub-model methods. But instead of having these methods in the Roles I''d like to have these methods automatically added to the Person instance as singleton methods. Does anybody know howto do this? Regards Florian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---