class Akashi::Ec2::KeyPair
Public Class Methods
create()
click to toggle source
# File lib/akashi/ec2/key_pair.rb, line 9 def create response = Akashi::Aws.ec2.client.import_key_pair( key_name: Akashi.name, public_key_material: Base64.encode64(Akashi.manifest.ec2.public_key) ) new(response[:key_name]).tap do |instance| puts "Created a KeyPair (#{instance.id})." end end