lib/match/runner.rb in match-0.2.4 vs lib/match/runner.rb in match-0.2.5

- old
+ new

@@ -21,11 +21,11 @@ uuid = profile(params: params, certificate_id: cert_id) spaceship.profile_exists(params, uuid) if spaceship # Done - if self.changes_to_commit + if self.changes_to_commit and !params[:readonly] message = GitHelper.generate_commit_message(params) GitHelper.commit_changes(params[:workspace], message, params[:git_url]) end TablePrinter.print_summary(params, uuid) @@ -67,10 +67,10 @@ end def profile(params: nil, certificate_id: nil) prov_type = params[:type].to_sym - profile_name = [prov_type.to_s, params[:app_identifier]].join("_").gsub("*", '\*') # this is important, as it shouldn't be a wildcard + profile_name = [Match::Generator.profile_type_name(prov_type), params[:app_identifier]].join("_").gsub("*", '\*') # this is important, as it shouldn't be a wildcard profiles = Dir[File.join(params[:workspace], "profiles", prov_type.to_s, "#{profile_name}.mobileprovision")] # Install the provisioning profiles profile = profiles.last if profile.nil? or params[:force]