debian-mirror-gitlab/app/services/deployments/update_service.rb
2020-01-01 13:55:28 +05:30

16 lines
294 B
Ruby

# frozen_string_literal: true
module Deployments
class UpdateService
attr_reader :deployment, :params
def initialize(deployment, params)
@deployment = deployment
@params = params
end
def execute
deployment.update_status(params[:status])
end
end
end