summaryrefslogtreecommitdiff
path: root/app/workers/concerns/cluster_applications.rb
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