mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 17:23:10 +09:00
feature #1383: make net/ssh replacement compatible with ruby 1.8.7
This commit is contained in:
1 parent
c184bb86e6
commit
a88165f4f8
1 file changed
+9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user