Class Rudy::AWS::EC2::Keypair

  1. lib/rudy/aws/ec2/keypair.rb
Parent: Storable

Methods

public instance

  1. public_key
  2. to_s

Public instance methods

public_key ()
[show source]
    # File lib/rudy/aws/ec2/keypair.rb, line 15
15:       def public_key
16:         return unless @private_key
17:         k = Rye::Key.new(@private_key)
18:         k.public_key.to_ssh2
19:       end
to_s (titles=false)
[show source]
    # File lib/rudy/aws/ec2/keypair.rb, line 11
11:       def to_s(titles=false)
12:         [@name.bright, @fingerprint].join '; '
13:       end