Method: Config#find_app_config

Defined in:
lib/core/config.rb

#find_app_config(app_name1) ⇒ Object



137
138
139
140
141
142
143
144
145
146
# File 'lib/core/config.rb', line 137

def find_app_config(app_name1)
  @app_configs ||= {}

  @app_configs[app_name1] ||= apps.filter_map do |app_name2, app_config|
                                next unless app_matches?(app_name1, app_name2, app_config)

                                app_config[:name] = app_name2
                                app_config
                              end&.last
end