stf-client 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stf/interactor/start_debug_session_interactor.rb +4 -2
- data/lib/stf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5d7318c658dec0b3037881a34ca1a31ebf9765
|
4
|
+
data.tar.gz: 11a9cae788fceea8fff37ad3999fa802e52458d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eba37ea10f749e99596508994b59c7c110cdda68363b533d577fd0909a294dc2b1cf309f939396c394fdc7fa5e2479e3754c67060e857cf3242d45a310cdf5e
|
7
|
+
data.tar.gz: 035e6143864257708de86866a4f17456821afdb4e4e72b7a880abbd99f3d0b4a9cbdcd91e125200f8437888f53091ed849d10017d5ccc653ba6e0b61fa9053fe
|
@@ -25,7 +25,7 @@ class StartDebugSessionInteractor
|
|
25
25
|
sleep 5
|
26
26
|
next
|
27
27
|
end
|
28
|
-
usable_devices = devices.select
|
28
|
+
usable_devices = devices.select{ |d| d.ready == true && d.present == true && d.using == false }
|
29
29
|
if usable_devices.empty?
|
30
30
|
logger.error 'All devices are being used. Retrying'
|
31
31
|
sleep 5
|
@@ -62,4 +62,6 @@ class StartDebugSessionInteractor
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
65
|
-
end
|
65
|
+
end
|
66
|
+
|
67
|
+
StartDebugSessionInteractor.new(Stf::Client.new('https://stf.default.svc.agoda.mobi', 'c8c62e3503d246b68d6683c47bc1414a80b9527185494c8ea811f874e9fdb7d2')).execute
|
data/lib/stf/version.rb
CHANGED