2017-05-07 18:35:56 -04:00
|
|
|
module Ci
|
|
|
|
class CreatePipelineScheduleService < BaseService
|
|
|
|
def execute
|
2017-07-05 11:23:28 -04:00
|
|
|
project.pipeline_schedules.create(pipeline_schedule_params)
|
2017-05-07 18:35:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def pipeline_schedule_params
|
2017-07-05 11:23:28 -04:00
|
|
|
params.merge(owner: current_user)
|
2017-05-07 18:35:56 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|