Module: DsymUuidExtractor
- Defined in:
- lib/dsym_uuid_extractor.rb,
lib/dsym_uuid_extractor/version.rb,
lib/dsym_uuid_extractor/macho_reader.rb
Defined Under Namespace
Classes: MachOBinaryReader, MachOFileReader, MachOReader
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.run(file_path) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/dsym_uuid_extractor.rb', line 5 def self.run(file_path) results = {} reader = if MachOBinaryReader.is_binary_file?(file_path) MachOBinaryReader.new(file_path: file_path) else MachOFileReader.new(file_path: file_path) end reader.each_file do |file| file.extract_info results[file.uuid] = file.arch end results end |