diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 18:21:59 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 18:21:59 +0300 |
commit | cc02eeff6eca6ad318c5147848dcbc4ddf87680d (patch) | |
tree | 3cec793ded0f8142513f42467fc5668fc1d52a2c /qa | |
parent | ada39be67aa3805f0c2f45d51f47b478735836d4 (diff) |
Move initialize method later.
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 |