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
OpenSSL
available 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
.
403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/putty/key/openssl.rb', line 403 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 |