diff options
author | Arturas Slajus <x11@arturaz.net> | 2012-02-16 13:58:59 +0200 |
---|---|---|
committer | Arturas Slajus <x11@arturaz.net> | 2012-02-16 13:58:59 +0200 |
commit | f634c5aca0eff8d1f9262ba817da7f392457fce2 (patch) | |
tree | b27878767d13950aa2aa6e176f971d4ed33007f8 | |
parent | f1f9340498a6e8030b0b1feb084a20df98271037 (diff) | |
download | net-ssh-f634c5aca0eff8d1f9262ba817da7f392457fce2.tar.gz |
Use Net::SSH::Authentication::PLATFORM instead of separate detection in #agent_socket_factory
-rw-r--r-- | lib/net/ssh/authentication/agent.rb | 2 | ||||
-rw-r--r-- | lib/net/ssh/authentication/agent/socket.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/authentication/agent.rb b/lib/net/ssh/authentication/agent.rb index 90484dc..dbc7e3d 100644 --- a/lib/net/ssh/authentication/agent.rb +++ b/lib/net/ssh/authentication/agent.rb @@ -20,4 +20,4 @@ when :java_win32 require 'net/ssh/authentication/agent/java_pageant' else require 'net/ssh/authentication/agent/socket' -end
\ No newline at end of file +end diff --git a/lib/net/ssh/authentication/agent/socket.rb b/lib/net/ssh/authentication/agent/socket.rb index 3e2ca1e..78b6382 100644 --- a/lib/net/ssh/authentication/agent/socket.rb +++ b/lib/net/ssh/authentication/agent/socket.rb @@ -125,7 +125,7 @@ module Net; module SSH; module Authentication # Returns the agent socket factory to use. def agent_socket_factory - if File::ALT_SEPARATOR + if Net::SSH::Authentication::PLATFORM == :win32 Pageant::socket_factory else UNIXSocket |