lib/rye.rb in rye-0.8.4 vs lib/rye.rb in rye-0.8.5
- old
+ new
@@ -41,11 +41,11 @@
#++
module Rye
extend self
unless defined?(SYSINFO)
- VERSION = "0.8.4".freeze
+ VERSION = "0.8.5".freeze
SYSINFO = SysInfo.new.freeze
end
@@agent_env = Hash.new # holds ssh-agent env vars
@@mutex = Mutex.new # for synchronizing threads
@@ -275,12 +275,11 @@
# SSH_AUTH_SOCK=/tmp/ssh-tGvaOXIXSr/agent.12951; export SSH_AUTH_SOCK;
# SSH_AGENT_PID=12952; export SSH_AGENT_PID;
# $ SSH_AUTH_SOCK=/tmp/ssh-tGvaOXIXSr/agent.12951; export SSH_AUTH_SOCK;
# $ SSH_AGENT_PID=12952; export SSH_AGENT_PID;
#
- # NOTE: The OpenSSL library (The C one, not the Ruby one)
- # must be installed for this to work.
+ # NOTE: The OpenSSH library must be installed for this to work.
#
def start_sshagent_environment
return if @@agent_env["SSH_AGENT_PID"]
lines = Rye.shell("ssh-agent", '-s') || []
lines.each do |line|
@@ -320,10 +319,10 @@
start_sshagent_environment # Run this now
at_exit { end_sshagent_environment } # Run this before Ruby exits
}
rescue => ex
- STDERR.puts "Error initializing the SSH Agent (is OpenSSL installed?):"
+ STDERR.puts "Error initializing the SSH Agent (is OpenSSH installed?):"
STDERR.puts ex.message
STDERR.puts ex.backtrace
exit 1
end
\ No newline at end of file