Module: PuTTY::Key::OpenSSL
- Defined in:
- lib/putty/key/openssl.rb
Defined Under Namespace
Modules: ClassMethods, DSA, EC, RSA
Class Method Summary collapse
-
.global_install ⇒ Object
Makes the refinements to
OpenSSLavailable in PuTTY::Key available globally.
Class Method Details
.global_install ⇒ Object
Makes the refinements to OpenSSL available in PuTTY::Key available
globally. After calling global_install, it is no longer necessary to
include using PuTTY::Key when using the to_ppk and from_ppk
methods added to OpenSSL::PKey.
413 414 415 416 417 418 419 420 421 422 423 424 |
# File 'lib/putty/key/openssl.rb', line 413 def self.global_install PKEY_CLASSES.each do |name, openssl_class| mod = const_get(name) openssl_class.class_eval do include mod end end ::OpenSSL::PKey.module_eval do extend ClassMethods end end |