gitlab-org--gitlab-foss/app/workers/concerns/cluster_applications.rb
2018-06-27 01:12:01 -07:00

11 lines
235 B
Ruby

# 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