Class: Headdesk::Analyze

Inherits:
Object
  • Object
show all
Defined in:
lib/headdesk/analyze.rb

Overview

analyze an APK/IPA

Class Method Summary collapse

Class Method Details

.at(path) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/headdesk/analyze.rb', line 11

def self.at(path)
  begin
    return Headdesk::Apk.new(path).analyze
  rescue
  end
  begin
    return Headdesk::Ipa.new(path).analyze
  rescue
  end
  throw CliError.new('Path did not contain an unpacked IPA or APK.')
end