16 lines
295 B
Ruby
16 lines
295 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
|