lib/neetob/cli/github/bundle_audit.rb in neetob-0.5.17 vs lib/neetob/cli/github/bundle_audit.rb in neetob-0.5.18

- old
+ new

@@ -21,9 +21,14 @@ report = nil matching_repos.each do |repo| begin ui.info("\nWorking on repo #{repo}", print_to_audit_log: false) clone_repo_in_tmp_dir(repo) + gemfile_path = File.join(tmp_repo_path(repo), "Gemfile") + until File.exist?(gemfile_path) + ui.info("Waiting for clone to finish", print_to_audit_log: false) + sleep(1) + end bundle_install!(repo) report = run_bundle_audit(repo) ui.success("Successfully executed bundle audit for #{repo}", print_to_audit_log: false) rescue StandardError => e ExceptionHandler.new(e).process