2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-07 18:35:56 -04:00
|
|
|
module Ci
|
|
|
|
class CreatePipelineScheduleService < BaseService
|
|
|
|
def execute
|
|
|
|
project.pipeline_schedules.create(pipeline_schedule_params)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def pipeline_schedule_params
|
|
|
|
params.merge(owner: current_user)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|