gitlab-org--gitlab-foss/app/services/ci/update_build_queue_service.rb
gfyoung 265478ad74 Enable frozen string in apps/services/**/*.rb
For directories application_settings --> labels.

Partially addresses #47424.
2018-07-16 12:36:41 -07:00

17 lines
293 B
Ruby

# frozen_string_literal: true
module Ci
class UpdateBuildQueueService
def execute(build)
tick_for(build, build.project.all_runners)
end
private
def tick_for(build, runners)
runners.each do |runner|
runner.pick_build!(build)
end
end
end
end