Module: Net::SSH::Authentication::ED25519Loader
- Defined in:
- lib/net/ssh/authentication/ed25519_loader.rb
Overview
Loads ED25519 support which requires optinal dependecies like ed25519, bcrypt_pbkdf
Class Method Summary collapse
Class Method Details
.dependenciesRequiredForED25519 ⇒ Object
24 25 26 27 28 29 |
# File 'lib/net/ssh/authentication/ed25519_loader.rb', line 24 def self.dependenciesRequiredForED25519 result = "net-ssh requires the following gems for ed25519 support:\n" result << " * ed25519 (>= 1.2, < 2.0)\n" result << " * bcrypt_pbkdf (>= 1.0, < 2.0)\n" unless RUBY_PLATFORM == "java" result << "See https://github.com/net-ssh/net-ssh/issues/565 for more information\n" end |
.raiseUnlessLoaded(message) ⇒ Object
18 19 20 21 22 |
# File 'lib/net/ssh/authentication/ed25519_loader.rb', line 18 def self.raiseUnlessLoaded() description = ERROR.is_a?(LoadError) ? dependenciesRequiredForED25519 : '' description << "#{ERROR.class} : \"#{ERROR.}\"\n" if ERROR raise NotImplementedError, "#{}\n#{description}" unless LOADED end |