0
@@ -10,6 +10,29 @@ module Capistrano
0
+ # Now, Net::SSH is kind of silly, and tries to lazy-load everything. This
0
+ # wreaks havoc with the parallel connection trick that Capistrano wants to
0
+ # use, so we're going to do something hideously ugly here and force all the
0
+ # files that Net::SSH uses to load RIGHT NOW, rather than lazily.
0
+ net_ssh_dependencies = %w(connection/services connection/channel connection/driver
0
+ service/agentforward/services service/agentforward/driver
0
+ service/forward/services service/forward/driver service/forward/local-network-handler service/forward/remote-network-handler
0
+ lenient-host-key-verifier
0
+ transport/compress/services transport/compress/zlib-compressor transport/compress/none-compressor transport/compress/zlib-decompressor transport/compress/none-decompressor
0
+ transport/kex/services transport/kex/dh transport/kex/dh-gex
0
+ transport/ossl/services
0
+ transport/ossl/hmac/services transport/ossl/hmac/sha1 transport/ossl/hmac/sha1-96 transport/ossl/hmac/md5 transport/ossl/hmac/md5-96 transport/ossl/hmac/none
0
+ transport/ossl/cipher-factory transport/ossl/hmac-factory transport/ossl/buffer-factory transport/ossl/key-factory transport/ossl/digest-factory
0
+ transport/identity-cipher transport/packet-stream transport/version-negotiator transport/algorithm-negotiator transport/session
0
+ userauth/methods/services userauth/methods/password userauth/methods/keyboard-interactive userauth/methods/publickey userauth/methods/hostbased
0
+ userauth/services userauth/agent userauth/userkeys userauth/driver
0
+ net_ssh_dependencies << "userauth/pageant" if File::ALT_SEPARATOR
0
+ net_ssh_dependencies.each { |path| require "net/ssh/#{path}" }
0
# A helper class for dealing with SSH connections.
0
# Patch an accessor onto an SSH connection so that we can record the server
Comments
No one has commented yet.