Skip to content

Instantly share code, notes, and snippets.

@randyinla
Created November 9, 2012 18:58
Show Gist options
  • Save randyinla/4047525 to your computer and use it in GitHub Desktop.
Save randyinla/4047525 to your computer and use it in GitHub Desktop.
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