lib/match/runner.rb in match-0.3.0 vs lib/match/runner.rb in match-0.4.0
- old
+ new
@@ -5,11 +5,11 @@
def run(params)
FastlaneCore::PrintTable.print_values(config: params,
hide_keys: [:workspace],
title: "Summary for match #{Match::VERSION}")
- params[:workspace] = GitHelper.clone(params[:git_url], params[:shallow_clone])
+ params[:workspace] = GitHelper.clone(params[:git_url], params[:shallow_clone], skip_docs: params[:skip_docs])
spaceship = SpaceshipEnsure.new(params[:username]) unless params[:readonly]
# Verify the App ID (as we don't want 'match' to fail at a later point)
spaceship.bundle_identifier_exists(params) if spaceship
@@ -73,15 +73,15 @@
profiles = Dir[File.join(params[:workspace], "profiles", prov_type.to_s, "#{profile_name}.mobileprovision")]
# Install the provisioning profiles
profile = profiles.last
- if params[:force_for_new_devices]
+ if params[:force_for_new_devices] && !params[:readonly]
params[:force] = device_count_different?(profile: profile) unless params[:force]
end
if profile.nil? or params[:force]
- UI.crash!("No matching provisioning profiles found and can not create a new one because you enabled `readonly`") if params[:readonly]
+ UI.user_error!("No matching provisioning profiles found and can not create a new one because you enabled `readonly`") if params[:readonly]
profile = Generator.generate_provisioning_profile(params: params,
prov_type: prov_type,
certificate_id: certificate_id)
self.changes_to_commit = true
end