Rename to process build service

This commit is contained in:
Shinya Maeda 2018-09-25 14:24:08 +09:00 committed by Alessio Caiazza
parent 2f03c503fb
commit 27a4c03502
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Ci
class ProceedBuildService < BaseService
class ProcessBuildService < BaseService
def execute(build)
if build.schedulable?
build.schedule!

View file

@ -37,7 +37,7 @@ module Ci
def process_build(build, current_status)
if valid_statuses_for_when(build.when).include?(current_status)
Ci::ProceedBuildService.new(project, @user).execute(build)
Ci::ProcessBuildService.new(project, @user).execute(build)
true
else
build.skip