def run_on_modifications(paths)
      change_scope, job_name = @change_assessor.determine_scope(paths)
      errors = case change_scope
               when :all
                 reload_deployment_manifest
                 render_all_job_templates
               when :all_templates_for_job
                 render_templates_for_job(
                   job_name, @job_repository.template_paths(job_name))
               when :single_template
                 render_templates_for_job(job_name, paths)
               end
      notify_errors(errors)
    end
def run_on_modifications(paths)
      change_scope, job_name = @change_assessor.determine_scope(paths)
      errors = case change_scope
               when :all
                 reload_deployment_manifest
                 render_all_job_templates
               when :all_templates_for_job
                 render_templates_for_job(
                   job_name, @job_repository.template_paths(job_name))
               when :single_template
                 render_templates_for_job(job_name, paths)
               end
      notify_errors(errors)
    end
rubocop:disable Metrics/MethodLength