Method: Deliver::DetectValues#find_app

Defined in:
lib/deliver/detect_values.rb

#find_app(options) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/deliver/detect_values.rb', line 27

def find_app(options)
  search_by = options[:app_identifier]
  search_by = options[:app] if search_by.to_s.length == 0
  app = Spaceship::Application.find(search_by)
  if app
    options[:app] = app
  else
    UI.user_error!("Could not find app with app identifier '#{options[:app_identifier]}' in your iTunes Connect account (#{options[:username]} - Team: #{Spaceship::Tunes.client.team_id})")
  end
end