simctl 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simctl/command/create.rb +4 -3
- data/lib/simctl/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: b69dda3a4d2d65b36411424b2348d7fe2e7bc6e3
|
4
|
+
data.tar.gz: c6628e187a8ebb0b7daee3abeaa524154623f60e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a5b354223c05fbfa7170412de2e570a785b0ba6e4c06320da678ae45b5b6a01ba90303d055a05078263c0284d80da3910c20898f4520383fa1f0d8efcb06e93
|
7
|
+
data.tar.gz: 3b22417301bb749c1935f686d97d6827a452ec3cce88e13c7f2f2aca8d9a1a3d8a388e766d10f8a108a8087e7a88deeddd0d7b2001e63571fa56eb1d95f24078
|
data/Gemfile.lock
CHANGED
@@ -24,9 +24,10 @@ module SimCtl
|
|
24
24
|
# @yield [exception] an exception that might happen during shutdown/delete of the old device
|
25
25
|
def reset_device(name, device_type, runtime)
|
26
26
|
begin
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
SimCtl.list_devices.where(name: name, os: runtime.name).each do |device|
|
28
|
+
device.shutdown! if device.state != 'Shutdown'
|
29
|
+
device.delete!
|
30
|
+
end
|
30
31
|
rescue Exception => exception
|
31
32
|
yield exception if block_given?
|
32
33
|
end
|
data/lib/simctl/version.rb
CHANGED