Class: Alvid::Keypair
- Inherits:
-
Object
- Object
- Alvid::Keypair
- Defined in:
- lib/alvid/keypair.rb
Instance Method Summary collapse
-
#initialize ⇒ Keypair
constructor
A new instance of Keypair.
- #pri ⇒ Object
- #pub ⇒ Object
Constructor Details
#initialize ⇒ Keypair
Returns a new instance of Keypair.
5 6 7 |
# File 'lib/alvid/keypair.rb', line 5 def initialize @keypair = SSHKey.generate end |
Instance Method Details
#pri ⇒ Object
13 14 15 |
# File 'lib/alvid/keypair.rb', line 13 def pri @keypair.private_key end |
#pub ⇒ Object
9 10 11 |
# File 'lib/alvid/keypair.rb', line 9 def pub @keypair.ssh_public_key end |