Module: SimCtl::Command::Delete
- Included in:
- SimCtl::Command
- Defined in:
- lib/simctl/command/delete.rb
Instance Method Summary collapse
-
#delete_all_devices ⇒ SimCtl::List
Delete all devices.
-
#delete_device(device) ⇒ void
Delete a device.
Instance Method Details
#delete_all_devices ⇒ SimCtl::List
Delete all devices
15 16 17 18 19 20 21 22 |
# File 'lib/simctl/command/delete.rb', line 15 def delete_all_devices list_devices.each do |device| device.kill device.shutdown if device.state != :shutdown device.wait { |d| d.state == :shutdown } device.delete end end |