diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/runtime/rsa_key.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/qa/runtime/rsa_key.rb b/qa/qa/runtime/rsa_key.rb index e9b6ea66dbd..d456062bce7 100644 --- a/qa/qa/runtime/rsa_key.rb +++ b/qa/qa/runtime/rsa_key.rb @@ -6,13 +6,13 @@ module QA class RSAKey extend Forwardable + attr_reader :key + def_delegators :@key, :fingerprint + def initialize(bits = 4096) @key = OpenSSL::PKey::RSA.new(bits) end - attr_reader :key - def_delegators :@key, :fingerprint - def public_key @public_key ||= "#{key.ssh_type} #{[key.to_blob].pack('m0')}" end |