Sha256: 4e73566ce6909b426f1af769165a52ea18995715e99956a565d10cf2d1552a6c

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require 'headdesk/apk'
require 'headdesk/ipa'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headdesk-0.16.1 lib/headdesk/analyze.rb
headdesk-0.16.0 lib/headdesk/analyze.rb