Permalink
Browse files

Move keypair creation to prepare phase

  • Loading branch information...
1 parent 78c2812 commit 67adc67f8e49fdcd88329157dce2ad703598bb13 @nickmarden nickmarden committed Dec 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ironfan/provider/ec2/keypair.rb
@@ -50,8 +50,9 @@ def receive_adaptee(obj)
# Manipulation
#
- def self.create!(computer)
- name = computer.server.cluster_name
+ def self.prepare!(computers)
+ return if computers.empty?
+ name = computers.values[0].server.cluster_name
return if recall? name
Ironfan.step(name, "creating key pair for #{name}", :blue)
result = Ec2.connection.create_key_pair(name)

0 comments on commit 67adc67

Please sign in to comment.