require 'irb_boot' c = Sauce::Client.new(:username => "sgrove", :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 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?