lib/simctl/device.rb in simctl-1.2.1 vs lib/simctl/device.rb in simctl-1.2.2

- old
+ new

@@ -60,10 +60,14 @@ end private def plist - @plist ||= OpenStruct.new(CFPropertyList.native_types(CFPropertyList::List.new(file: File.join(ENV['HOME'], 'Library/Developer/CoreSimulator/Devices', udid, 'device.plist')).value)) + @plist ||= OpenStruct.new(CFPropertyList.native_types(CFPropertyList::List.new(file: plist_path).value)) + end + + def plist_path + File.join(ENV['HOME'], 'Library/Developer/CoreSimulator/Devices', udid, 'device.plist') end end end