class Rudy::AWS::EC2::Keypair

Public Instance Methods

public_key() click to toggle source
# 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) click to toggle source
# File lib/rudy/aws/ec2/keypair.rb, line 11
def to_s(titles=false)
  [@name.bright, @fingerprint].join '; '
end