lib/poolparty/net/remoter_bases/ec2/ec2.rb
# Associate an address with the instance using ec2
# Get the next_unused_elastic_ip
# and if there is one, associate the instance to the 
# public ip
Associate an address with the instance using ec2
Get the next_unused_elastic_ip
and if there is one, associate the instance to the
public ip
Associate an address with the instance using ec2 Get the next_unused_elastic_ip and if there is one associate the instance to the public ip
def associate_address(instance=nil)
        if ip = next_unused_elastic_ip
          vputs "Associating #{instance.instance_id} with #{ip}"
          ec2.associate_address(:instance_id => instance.instance_id, :public_ip => ip)
        end
      end
def associate_address ( instance = nil ) if ip = next_unused_elastic_ip vputs "Associating #{instance.instance_id} with #{ip}" ec2 . associate_address ( :instance_id => instance . instance_id , :public_ip => ip ) end end
Associate an address with the instance using ec2
Get the next_unused_elastic_ip
and if there is one, associate the instance to the
public ip
Associate an address with the instance using ec2 Get the next_unused_elastic_ip and if there is one associate the instance to the public ip
instance