Class: Lagunitas::App
- Inherits:
-
Object
- Object
- Lagunitas::App
- Defined in:
- lib/lagunitas.ext.rb
Instance Method Summary collapse
- #devices ⇒ Object
- #distribution_name ⇒ Object
- #mobileprovision ⇒ Object
- #name ⇒ Object
- #release_type ⇒ Object
Instance Method Details
#devices ⇒ Object
11 12 13 |
# File 'lib/lagunitas.ext.rb', line 11 def devices mobileprovision['ProvisionedDevices'] end |
#distribution_name ⇒ Object
14 15 16 |
# File 'lib/lagunitas.ext.rb', line 14 def distribution_name mobileprovision['DeveloperCertificates'] end |
#mobileprovision ⇒ Object
8 9 10 |
# File 'lib/lagunitas.ext.rb', line 8 def mobileprovision @mobileprovision = CFPropertyList.native_types CFPropertyList::List.new(:data => `security cms -D -i #{File.join @path, 'embedded.mobileprovision'}`).value end |
#name ⇒ Object
5 6 7 |
# File 'lib/lagunitas.ext.rb', line 5 def name @info['CFBundleName'] end |
#release_type ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/lagunitas.ext.rb', line 17 def release_type if devices == nil 'inhouse' else 'adhoc' end end |