Class: SimCtl::DevicePath
- Inherits:
-
Object
- Object
- SimCtl::DevicePath
- Defined in:
- lib/simctl/device_path.rb
Instance Method Summary collapse
- #device_plist ⇒ Object
- #global_preferences_plist ⇒ Object
- #home ⇒ Object
-
#initialize(device) ⇒ DevicePath
constructor
A new instance of DevicePath.
- #launchctl ⇒ Object
- #preferences_plist ⇒ Object
Constructor Details
#initialize(device) ⇒ DevicePath
Returns a new instance of DevicePath.
5 6 7 |
# File 'lib/simctl/device_path.rb', line 5 def initialize(device) @device = device end |
Instance Method Details
#device_plist ⇒ Object
9 10 11 |
# File 'lib/simctl/device_path.rb', line 9 def device_plist @device_plist ||= File.join(home, 'device.plist') end |
#global_preferences_plist ⇒ Object
13 14 15 |
# File 'lib/simctl/device_path.rb', line 13 def global_preferences_plist @global_preferences_plist ||= File.join(home, 'data/Library/Preferences/.GlobalPreferences.plist') end |
#home ⇒ Object
17 18 19 |
# File 'lib/simctl/device_path.rb', line 17 def home @home ||= File.join(device_set_path, device.udid) end |
#launchctl ⇒ Object
21 22 23 |
# File 'lib/simctl/device_path.rb', line 21 def launchctl @launchctl ||= File.join(runtime_root, 'bin/launchctl') end |
#preferences_plist ⇒ Object
25 26 27 |
# File 'lib/simctl/device_path.rb', line 25 def preferences_plist @preferences_plist ||= File.join(home, 'data/Library/Preferences/com.apple.Preferences.plist') end |