class SauceWhisk::Tunnels
def self.open(opts, wait_until_ready = true)
def self.open(opts, wait_until_ready = true) new_tunnel_parameters = JSON.parse((post :payload => opts), :symbolize_names => true) new_tunnel = fetch new_tunnel_parameters[:id] while(["starting", "booting"].include? new_tunnel.status) new_tunnel = fetch new_tunnel_parameters[:id] end return new_tunnel end