2018-06-27 03:31:41 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-02 13:55:02 -04:00
|
|
|
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
|