debian-mirror-gitlab/app/services/clusters/update_service.rb
2018-12-13 13:39:08 +05:30

15 lines
282 B
Ruby

# frozen_string_literal: true
module Clusters
class UpdateService
attr_reader :current_user, :params
def initialize(user = nil, params = {})
@current_user, @params = user, params.dup
end
def execute(cluster)
cluster.update(params)
end
end
end