Sha256: 37a4c787e4faf8bd628e0814b0761d925b6816b35e209d653920c921bd1846fb
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
module Stf class DeviceEnhancer def get_tunneled_remote_connect_url(device) provider = device.provider provider_ip = provider["ip"] result = DI[:stf].start_debug device.serial remote_connect_url_split = result.remoteConnectUrl.split ":" remote_connect_port = remote_connect_url_split[1] result = DI[:stf].check_tunnel provider_ip, remote_connect_port if result.success remote_connect_hostname = remote_connect_url_split[0] remote_connect_hostname + ":" + result.port.to_s else nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartdust-client-1.2.0 | lib/stf/model/device_enhancer.rb |
smartdust-client-1.1.0 | lib/stf/model/device_enhancer.rb |