test/debug.rb in sauce-0.2.0 vs test/debug.rb in sauce-0.2.1

- old
+ new

@@ -1,11 +1,34 @@ -require 'helper' +require 'irb_boot' c = Sauce::Client.new(:username => "sgrove", - :access_key => "4c592ce3-8f45-4cd6-8e3e-65b9f0b173d0") + :access_key => "733a44e2-4226-488f-8126-6f6d59bdf386", + :ip => "67.188.3.10") +=begin +t = c.tunnels.first + c.destroy_all_tunnels t = c.create_tunnel('DomainNames' => ["111.111.111.111"]) puts c.tunnels.inspect +=end -c.destroy_all_tunnels +t = c.tunnels.first + +if t.nil? + puts "Starting a new tunnel" + t = c.tunnels.create("DomainNames" => ["sgrove.tst"]) + until t.status == "running" + print "." ; STDOUT.flush + t.refresh! + sleep 1 + end +end + +puts t.inspect +t.open_gateway + +puts "Checking to see if thread is running." +puts t.still_running? +puts t.thread.inspect +t.thread.join if t.still_running?