tests/vendor/ceedling/lib/configurator_plugins.rb
def find_config_plugins(config)
    plugins_with_path = []
    
    config[:plugins][:load_paths].each do |root|
      config[:plugins][:enabled].each do |plugin|
        config_plugin_path = File.join(root, plugin, "config", "#{plugin}.yml")

        # Add the old path here to support legacy style. Eventaully remove.
        old_config_plugin_path = File.join(root, plugin, "#{plugin}.yml")

        if @file_wrapper.exist?(config_plugin_path)
          plugins_with_path << config_plugin_path
        elsif @file_wrapper.exist?(old_config_plugin_path)
          # there's a warning printed for this in find_script_plugins
          plugins_with_path << old_config_plugin_path
        end
      end
    end
    
    return plugins_with_path    
  end
# gather up and return configuration .yml filepaths that exist on-disk
gather up and return configuration .yml filepaths that exist on-disk
gather up and return configuration . yml filepaths that exist on - disk
def find_config_plugins(config)
    plugins_with_path = []
    config[:plugins][:load_paths].each do |root|
      config[:plugins][:enabled].each do |plugin|
        config_plugin_path = File.join(root, plugin, "config", "#{plugin}.yml")
        old_config_plugin_path = File.join(root, plugin, "#{plugin}.yml")
        if @file_wrapper.exist?(config_plugin_path)
          plugins_with_path << config_plugin_path
        elsif @file_wrapper.exist?(old_config_plugin_path)
          plugins_with_path << old_config_plugin_path
        end
      end
    end
    return plugins_with_path    
  end
def find_config_plugins ( config ) plugins_with_path = [ ] config [ :plugins ] [ :load_paths ] . each do | root | config [ :plugins ] [ :enabled ] . each do | plugin | config_plugin_path = File . join ( root , plugin , "config" , "#{plugin}.yml" ) old_config_plugin_path = File . join ( root , plugin , "#{plugin}.yml" ) if @file_wrapper . exist? ( config_plugin_path ) plugins_with_path << config_plugin_path elsif @file_wrapper . exist? ( old_config_plugin_path ) plugins_with_path << old_config_plugin_path end end end return plugins_with_path end
gather up and return configuration .yml filepaths that exist on-disk
gather up and return configuration . yml filepaths that exist on - disk
# Add the old path here to support legacy style. Eventaully remove. # there's a warning printed for this in find_script_plugins
config