summaryrefslogtreecommitdiff
path: root/app/services/deployments/update_service.rb
blob: b8f8740c9b97b7b3ab3e8f03d92627b8560a6b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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