lib/release_tools/security/mirrors.rb
# Update each Security mirror with specified attributes
Update each Security mirror with specified attributes
Update each Security mirror with specified attributes
def update(options = {})
        Parallel.each(canonical_projects, in_threads: Etc.nprocessors) do |project|
          mirror = security_mirror(project)
          next unless mirror
          logger.info(
            'Updating mirror',
            project: project.path_with_namespace,
            mirror: mirror.url,
            **options
          )
          @client.put(
            "/projects/#{project.id}/remote_mirrors/#{mirror.id}",
            options.dup 
          )
        end
        true
      end
def update ( options = { } ) Parallel . each ( canonical_projects , in_threads : Etc . nprocessors ) do | project | mirror = security_mirror ( project ) next unless mirror logger . info ( 'Updating mirror' , project : project . path_with_namespace , mirror : mirror . url , ** options ) @client . put ( "/projects/#{project.id}/remote_mirrors/#{mirror.id}" , options . dup ) end true end
Update each Security mirror with specified attributes
Update each Security mirror with specified attributes
# https://github.com/NARKOZ/gitlab/pull/542
options