Message info
 
To:Capistrano From:RandyInLA Subject:[capistrano] Re: Add new perforce variable - How to overload a Private method in the perforce.rb file? Date:Thu, 5 Apr 2012 14:04:54 -0700 (PDT)
 

After looking at the p4 help for this cli var, I see they call it
charset and not unicode. Changes below:
-----------------------------------------------------------------------------------------------------------
module Capistrano
module Deploy
module SCM

class Perforce < Base
private

# override
def authentication
[ p4port && "-p #{ p4port }",
p4user && "-u #{ p4user }",
p4passwd && "-P #{ p4passwd }",
p4client && "-c #{ p4client }",
p4unicode && "-C #{ p4charset }" ].compact.join(" ")
end

# new
def p4charset
variable(:p4charset)
end

end
end
end
end
-----------------------------------------------------------------------------------------------------------

And in case it wasn't clear, I would add the following to my deploy.rb
file:
set :p4charset, 'utf8'

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to capistrano+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en