From a88165f4f8d1905a75124f136bcb751a76e724ef Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 22 Oct 2012 11:33:44 +0200 Subject: [PATCH] feature #1383: make net/ssh replacement compatible with ruby 1.8.7 --- src/cloud/ec2/lib/net_ssh_replacement.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cloud/ec2/lib/net_ssh_replacement.rb b/src/cloud/ec2/lib/net_ssh_replacement.rb index 250dfaafb5..c78fdced13 100644 --- a/src/cloud/ec2/lib/net_ssh_replacement.rb +++ b/src/cloud/ec2/lib/net_ssh_replacement.rb @@ -29,6 +29,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. require 'openssl' + +if RUBY_VERSION < "1.9" + class String + def getbyte(index) + self[index] + end + end +end + module OpenSSL module SSHUtils