Class: SimCtl::DevicePath

Inherits:
Object
  • Object
show all
Defined in:
lib/simctl/device_path.rb

Instance Method Summary collapse

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_plistObject



9
10
11
# File 'lib/simctl/device_path.rb', line 9

def device_plist
  @device_plist ||= File.join(home, 'device.plist')
end

#global_preferences_plistObject



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

#homeObject



17
18
19
# File 'lib/simctl/device_path.rb', line 17

def home
  @home ||= File.join(device_set_path, device.udid)
end

#launchctlObject



21
22
23
# File 'lib/simctl/device_path.rb', line 21

def launchctl
  @launchctl ||= File.join(runtime_root, 'bin/launchctl')
end

#preferences_plistObject



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