Class: RunLoop::Ipa
- Inherits:
-
Object
- Object
- RunLoop::Ipa
- Defined in:
- lib/run_loop/ipa.rb
Overview
A model of the an .ipa - a application binary for iOS devices.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The path to this .ipa.
Instance Method Summary collapse
-
#bundle_identifier ⇒ String
The bundle identifier of this ipa.
-
#calabash_server_version ⇒ Object
Inspects the app’s executables for the server version @return a version instance.
-
#executable_name ⇒ String
Inspects the app’s Info.plist for the executable name.
-
#initialize(path_to_ipa) ⇒ Calabash::Ipa
constructor
Create a new ipa instance.
Constructor Details
#initialize(path_to_ipa) ⇒ Calabash::Ipa
Create a new ipa instance.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/run_loop/ipa.rb', line 15 def initialize(path_to_ipa) unless File.exist? path_to_ipa raise "Expected an ipa at '#{path_to_ipa}'" end unless path_to_ipa.end_with?('.ipa') raise "Expected '#{path_to_ipa}' to be an .ipa" end @path = path_to_ipa end |
Instance Attribute Details
#path ⇒ String (readonly)
The path to this .ipa.
8 9 10 |
# File 'lib/run_loop/ipa.rb', line 8 def path @path end |
Instance Method Details
#bundle_identifier ⇒ String
The bundle identifier of this ipa.
38 39 40 |
# File 'lib/run_loop/ipa.rb', line 38 def bundle_identifier app.bundle_identifier end |
#calabash_server_version ⇒ Object
Inspects the app’s executables for the server version @return a version instance
50 51 52 |
# File 'lib/run_loop/ipa.rb', line 50 def calabash_server_version app.calabash_server_version end |
#executable_name ⇒ String
Inspects the app’s Info.plist for the executable name.
44 45 46 |
# File 'lib/run_loop/ipa.rb', line 44 def executable_name app.executable_name end |