lib/poolparty/net/remoter_bases/ec2/ec2.rb
def launch_new_instance!(o={})
        raise "You must pass a keypair to launch an instance, or else you will not be able to login. options = #{o.inspect}" if !cloud.keypair
        o.merge!( options ).merge!(:key_name=>keypair.basename)
        instance = ec2(o).run_instances(o)
        begin
          h = EC2ResponseObject.get_hash_from_response(instance.instancesSet.item.first)
          #h = instance.instancesSet.item.first
        rescue Exception => e
          h = EC2ResponseObject.get_hash_from_response(instance) rescue instance
          # h = instance
        end
        h
      end
# TODO: Fix the key_name issue
# Start a new instance with the given options
Fix the key_name issue
Start a new instance with the given options
Fix the key_name issue Start a new instance with the given options
def launch_new_instance!(o={})
        raise "You must pass a keypair to launch an instance, or else you will not be able to login. options = #{o.inspect}" if !cloud.keypair
        o.merge!( options ).merge!(:key_name=>keypair.basename)
        instance = ec2(o).run_instances(o)
        begin
          h = EC2ResponseObject.get_hash_from_response(instance.instancesSet.item.first)
        rescue Exception => e
          h = EC2ResponseObject.get_hash_from_response(instance) rescue instance
        end
        h
      end
def launch_new_instance! ( o = { } ) raise "You must pass a keypair to launch an instance, or else you will not be able to login. options = #{o.inspect}" if ! cloud . keypair o . merge! ( options ) . merge! ( :key_name => keypair . basename ) instance = ec2 ( o ) . run_instances ( o ) begin h = EC2ResponseObject . get_hash_from_response ( instance . instancesSet . item . first ) rescue Exception => e h = EC2ResponseObject . get_hash_from_response ( instance ) rescue instance end h end
TODO: Fix the key_name issue
Start a new instance with the given options
TODO : Fix the key_name issue Start a new instance with the given options
#h = instance.instancesSet.item.first # h = instance
o