lib/sigh/runner.rb in sigh-1.2.0 vs lib/sigh/runner.rb in sigh-1.2.1

- old
+ new

@@ -6,11 +6,11 @@ # Uses the spaceship to create or download a provisioning profile # returns the path the newly created provisioning profile (in /tmp usually) def run FastlaneCore::PrintTable.print_values(config: Sigh.config, - hide_keys: [], + hide_keys: [:output_path], title: "Summary for sigh #{Sigh::VERSION}") Helper.log.info "Starting login with user '#{Sigh.config[:username]}'" Spaceship.login(Sigh.config[:username], nil) Spaceship.select_team @@ -174,21 +174,24 @@ end # Makes sure the current App ID exists. If not, it will show an appropriate error message def ensure_app_exists! return if Spaceship::App.find(Sigh.config[:app_identifier]) + print_produce_command(Sigh.config) + raise "Could not find App with App Identifier '#{Sigh.config[:app_identifier]}'" + end + def print_produce_command(config) Helper.log.info "" Helper.log.info "==========================================".yellow - Helper.log.info "Could not find App ID with bundle identifier '#{Sigh.config[:app_identifier]}'" + Helper.log.info "Could not find App ID with bundle identifier '#{config[:app_identifier]}'" Helper.log.info "You can easily generate a new App ID on the Developer Portal using 'produce':" Helper.log.info "" - Helper.log.info "produce -u #{Sigh.config[:username]} -a #{Sigh.config[:app_identifier]} --skip_itc".yellow + Helper.log.info "produce -u #{config[:username]} -a #{config[:app_identifier]} --skip_itc".yellow Helper.log.info "" Helper.log.info "You will be asked for any missing information, like the full name of your app" Helper.log.info "If the app should also be created on iTunes Connect, remove the " + "--skip_itc".yellow + " from the command above" Helper.log.info "==========================================".yellow Helper.log.info "" - raise "Could not find App with App Identifier '#{Sigh.config[:app_identifier]}}'" end end end