Sha256: e4e5b64468d2c43a6a45dc789136fb5ff687655c4d7d498f09eb96de43544f9c

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

require 'plist'

module Sigh
  class ProfileAnalyser
    def self.run(path)
      plist = Plist::parse_xml(`security cms -D -i '#{path}'`)
      if plist.count > 10
        Helper.log.info("Provisioning profile of app '#{plist['AppIDName']}' with the name '#{plist['Name']}' successfully analysed.".green)
        return plist["UUID"]
      else
        Helper.log.error("Error parsing provisioning profile at path '#{path}'".red)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sigh-0.10.4 lib/sigh/profile_analyser.rb
sigh-0.10.3 lib/sigh/profile_analyser.rb
sigh-0.10.2 lib/sigh/profile_analyser.rb
sigh-0.10.1 lib/sigh/profile_analyser.rb
sigh-0.10.0 lib/sigh/profile_analyser.rb
sigh-0.9.0 lib/sigh/profile_analyser.rb
sigh-0.8.0 lib/sigh/profile_analyser.rb
sigh-0.6.0 lib/sigh/profile_analyser.rb
sigh-1.0.0.beta6 lib/sigh/profile_analyser.rb
sigh-1.0.0.beta5 lib/sigh/profile_analyser.rb
sigh-1.0.0.beta3 lib/sigh/profile_analyser.rb
sigh-1.0.0.beta2 lib/sigh/profile_analyser.rb
sigh-1.0.0.beta1 lib/sigh/profile_analyser.rb