lib/deliver/detect_values.rb in deliver-1.9.0 vs lib/deliver/detect_values.rb in deliver-1.10.0
- old
+ new
@@ -15,20 +15,20 @@
elsif options[:pkg]
identifier = FastlaneCore::PkgFileAnalyser.fetch_app_identifier(options[:pkg])
end
options[:app_identifier] = identifier if identifier.to_s.length > 0
- options[:app_identifier] ||= ask("The Bundle Identifier of your App: ")
+ options[:app_identifier] ||= UI.input("The Bundle Identifier of your App: ")
end
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
- raise "Could not find app with app identifier '#{options[:app_identifier]}' in your iTunes Connect account (#{options[:username]} - Team: #{Spaceship::Tunes.client.team_id})".red
+ 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
def find_folders(options)
containing = Helper.fastlane_enabled? ? './fastlane' : '.'