I found a way to overwrite the method. Works like a charm.
Rake::Task["deploy:check"].clear_actions
namespace :deploy do
task check: :'git:wrapper' do
on release_roles :all do
execute :mkdir, "-p", "#{fetch(:tmp_dir)}/#{fetch(:application)}/"
upload! StringIO.new("#!/bin/sh -e\nexec /usr/local/bin/ssh -o
PasswordAuthentication=no -o StrictHostKeyChecking=no \"$@\"\n"),
"#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
execute :chmod, "+x",
"#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
end
end
end
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/f61a0e26-8bff-4811-9901-8f6847b01829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.