Class: Swa::EC2::KeyPair

Inherits:
Resource show all
Defined in:
lib/swa/ec2/key_pair.rb

Instance Attribute Summary

Attributes inherited from Resource

#aws_resource

Instance Method Summary collapse

Methods inherited from Resource

#data, #initialize, list

Constructor Details

This class inherits a constructor from Swa::Resource

Instance Method Details

#nameObject



15
16
17
# File 'lib/swa/ec2/key_pair.rb', line 15

def name
  aws_resource.name
end

#summaryObject



8
9
10
11
12
13
# File 'lib/swa/ec2/key_pair.rb', line 8

def summary
  [
    pad(name, 4),
    aws_resource.key_fingerprint
  ].join("  ")
end