Class: Rudy::AWS::EC2::Keypair

Inherits:
Storable
  • Object
show all
Defined in:
lib/rudy/aws/ec2/keypair.rb

Instance Method Summary collapse

Instance Method Details

#public_keyObject



15
16
17
18
19
# File 'lib/rudy/aws/ec2/keypair.rb', line 15

def public_key
  return unless @private_key
  k = Rye::Key.new(@private_key)
  k.public_key.to_ssh2
end

#to_s(titles = false) ⇒ Object



11
12
13
# File 'lib/rudy/aws/ec2/keypair.rb', line 11

def to_s(titles=false)
  [@name.bright, @fingerprint].join '; '
end