2019-10-16 14:08:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Deployments
|
|
|
|
class UpdateService
|
|
|
|
attr_reader :deployment, :params
|
|
|
|
|
|
|
|
def initialize(deployment, params)
|
|
|
|
@deployment = deployment
|
|
|
|
@params = params
|
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
2019-12-14 10:07:56 -05:00
|
|
|
deployment.update_status(params[:status])
|
2019-10-16 14:08:01 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|