Created
November 9, 2012 18:58
-
-
Save randyinla/4047525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/recipes/deploy/scm/base' | |
# overriding Capistrano Perforce authentication | |
module Capistrano | |
module Deploy | |
module SCM | |
class Perforce < Base | |
private | |
def authentication | |
[ p4port && "-p #{p4port}", | |
p4user && "-u #{p4user}", | |
p4passwd && "-P #{p4passwd}", | |
p4client && "-c #{p4client}", | |
p4charset && "-C #{p4charset}" ].compact.join(" ") | |
end | |
def p4charset | |
variable(:p4charset) | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment