Method: Net::SSH::Authentication::Pageant::Socket#initialize
- Defined in:
- lib/net/ssh/authentication/pageant.rb
#initialize ⇒ Socket
Create a new instance that communicates with the running pageant instance. If no such instance is running, this will cause an error.
403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/net/ssh/authentication/pageant.rb', line 403 def initialize @win = Win.FindWindow("Pageant", "Pageant") if @win.to_i == 0 raise Net::SSH::Exception, "pageant process not running" end @input_buffer = Net::SSH::Buffer.new @output_buffer = Net::SSH::Buffer.new end |