Class: AppRepo::DetectValues
- Inherits:
-
Object
- Object
- AppRepo::DetectValues
- Defined in:
- lib/apprepo/detect_values.rb
Overview
This class is responsible for detecting values from IPA.
Instance Method Summary collapse
Instance Method Details
#find_app_identifier(options) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/apprepo/detect_values.rb', line 9 def find_app_identifier() return if [:app_identifier] if [:ipa] # identifier = AppRepo::Analyser.fetch_app_identifier(options[:ipa]) end [:app_identifier] = identifier unless identifier.to_s.empty? = 'The Bundle Identifier of your App: ' [:app_identifier] ||= UI.input() end |
#find_version(options) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/apprepo/detect_values.rb', line 19 def find_version() unless [:ipa].nil? opt = AppRepo::Analyser.new() [:app_version] ||= opt.fetch_app_version([:ipa]) end end |
#run!(options) ⇒ Object
4 5 6 7 |
# File 'lib/apprepo/detect_values.rb', line 4 def run!() find_app_identifier() find_version() end |