Class: FastlaneCore::Simulator
- Inherits:
-
Object
- Object
- FastlaneCore::Simulator
- Defined in:
- lib/fastlane_core/device_manager.rb
Direct Known Subclasses
Class Method Summary collapse
- .all ⇒ Object
- .clear_cache ⇒ Object
-
.reset(udid: nil, name: nil, os_version: nil) ⇒ Object
Reset simulator by UDID or name and OS version Latter is useful when combined with -destination option of xcodebuild.
-
.reset_all ⇒ Object
Reset all simulators of this type.
Class Method Details
.all ⇒ Object
170 171 172 |
# File 'lib/fastlane_core/device_manager.rb', line 170 def all return DeviceManager.simulators('iOS') end |
.clear_cache ⇒ Object
186 187 188 |
# File 'lib/fastlane_core/device_manager.rb', line 186 def clear_cache @devices = nil end |
.reset(udid: nil, name: nil, os_version: nil) ⇒ Object
Reset simulator by UDID or name and OS version Latter is useful when combined with -destination option of xcodebuild
181 182 183 184 |
# File 'lib/fastlane_core/device_manager.rb', line 181 def reset(udid: nil, name: nil, os_version: nil) match = all.detect { |device| device.udid == udid || device.name == name && device.os_version == os_version } match.reset if match end |
.reset_all ⇒ Object
Reset all simulators of this type
175 176 177 |
# File 'lib/fastlane_core/device_manager.rb', line 175 def reset_all all.each(&:reset) end |