Class: Haas::KeyPair
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Haas::KeyPair
- Defined in:
- lib/models/key_pair.rb
Instance Method Summary collapse
Instance Method Details
#get_private_key ⇒ Object
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 |