Sha256: e427c22ec2688b4dd7dbe6bdc6024382fa8757593f8594415312097e2de31ae0
Contents?: true
Size: 462 Bytes
Versions: 5
Compression:
Stored size: 462 Bytes
Contents
require 'plist' module Moblues module Utils class ModelResolver def resolve_model(path) raise ArgumentError, "#{path} not found" unless path && File.directory?(path) File.join(path, model_version(path), 'contents') end private def model_version(model_path) xml = File.open(File.join(model_path, '.xccurrentversion')).read Plist::parse_xml(xml)['_XCCurrentVersionName'] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems