Class: Haas::KeyPair

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/models/key_pair.rb

Instance Method Summary collapse

Instance Method Details

#get_private_keyObject



6
7
8
9
10
# File 'lib/models/key_pair.rb', line 6

def get_private_key
  collection = AWS::EC2::KeyPairCollection.new
  key = collection.create self.name
  self.private_key = key.private_key
end