debian-mirror-gitlab/app/services/ci/update_build_queue_service.rb
2018-10-15 14:42:47 +05:30

15 lines
262 B
Ruby

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