Class: Alvid::Keypair

Inherits:
Object
  • Object
show all
Defined in:
lib/alvid/keypair.rb

Instance Method Summary collapse

Constructor Details

#initializeKeypair

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

#priObject



13
14
15
# File 'lib/alvid/keypair.rb', line 13

def pri
  @keypair.private_key
end

#pubObject



9
10
11
# File 'lib/alvid/keypair.rb', line 9

def pub
  @keypair.ssh_public_key
end