tests/vendor/ceedling/lib/configurator_plugins.rb
def find_plugin_defaults(config)
    defaults_with_path = []
    
    config[:plugins][:load_paths].each do |root|
      config[:plugins][:enabled].each do |plugin|
        default_path = File.join(root, plugin, 'config', 'defaults.yml')
        old_default_path = File.join(root, plugin, 'defaults.yml')

        if @file_wrapper.exist?(default_path)
          defaults_with_path << default_path
        elsif @file_wrapper.exist?(old_default_path)
          defaults_with_path << old_default_path
        end
      end
    end

    return defaults_with_path    
  end
# gather up and return default .yml filepaths that exist on-disk
gather up and return default .yml filepaths that exist on-disk
gather up and return default . yml filepaths that exist on - disk
def find_plugin_defaults(config)
    defaults_with_path = []
    config[:plugins][:load_paths].each do |root|
      config[:plugins][:enabled].each do |plugin|
        default_path = File.join(root, plugin, 'config', 'defaults.yml')
        old_default_path = File.join(root, plugin, 'defaults.yml')
        if @file_wrapper.exist?(default_path)
          defaults_with_path << default_path
        elsif @file_wrapper.exist?(old_default_path)
          defaults_with_path << old_default_path
        end
      end
    end
    return defaults_with_path    
  end
def find_plugin_defaults ( config ) defaults_with_path = [ ] config [ :plugins ] [ :load_paths ] . each do | root | config [ :plugins ] [ :enabled ] . each do | plugin | default_path = File . join ( root , plugin , 'config' , 'defaults.yml' ) old_default_path = File . join ( root , plugin , 'defaults.yml' ) if @file_wrapper . exist? ( default_path ) defaults_with_path << default_path elsif @file_wrapper . exist? ( old_default_path ) defaults_with_path << old_default_path end end end return defaults_with_path end
gather up and return default .yml filepaths that exist on-disk
gather up and return default . yml filepaths that exist on - disk
config