Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cluster_applications.rb « concerns « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9758a1ceb0efbe8cb8238dcf65fcb025f2546ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

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