gitlab-org--gitlab-foss/app/workers/concerns/cluster_applications.rb
2017-11-03 10:57:09 +01:00

9 lines
204 B
Ruby

module ClusterApplications
extend ActiveSupport::Concern
included do
def find_application(app_name, id, &blk)
Clusters::Cluster::APPLICATIONS[app_name].find(id).try(&blk)
end
end
end