Sha256: 549bf03e459b981f651e1195facd3d9c20731e5ae62289dc72af28d6f5b59c30

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

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?

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sauce-0.4.3 test/debug.rb
sauce-0.4.0 test/debug.rb
sauce-0.3.0 test/debug.rb
sauce-0.2.2 test/debug.rb
sauce-0.2.1 test/debug.rb