Sha256: 6cc58c40ba28484f4b7a062cdf6c70ac2a536bc27657440cc891f2ab8aa0b384

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

module SimCtl
  class DevicePath
    attr_reader :device_plist, :global_preferences_plist, :home, :preferences_plist

    def initialize(udid)
      @home = File.join(ENV['HOME'], 'Library/Developer/CoreSimulator/Devices', udid)
      @device_plist = File.join(@home, 'device.plist')
      @global_preferences_plist = File.join(@home, 'data/Library/Preferences/.GlobalPreferences.plist')
      @preferences_plist = File.join(@home, 'data/Library/Preferences/com.apple.Preferences.plist')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simctl-1.5.1 lib/simctl/device_path.rb
simctl-1.5.0 lib/simctl/device_path.rb
simctl-1.4.1 lib/simctl/device_path.rb
simctl-1.4.0 lib/simctl/device_path.rb