2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Deployments
|
|
|
|
class UpdateService
|
|
|
|
attr_reader :deployment, :params
|
|
|
|
|
|
|
|
def initialize(deployment, params)
|
|
|
|
@deployment = deployment
|
|
|
|
@params = params
|
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
2020-01-01 13:55:28 +05:30
|
|
|
deployment.update_status(params[:status])
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|