debian-mirror-gitlab/app/services/clusters/update_service.rb

16 lines
282 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
module Clusters
2018-12-13 13:39:08 +05:30
class UpdateService
attr_reader :current_user, :params
def initialize(user = nil, params = {})
@current_user, @params = user, params.dup
end
2018-03-17 18:26:18 +05:30
def execute(cluster)
cluster.update(params)
end
end
end