tests/vendor/ceedling/lib/configurator_plugins.rb
# gather up and return just names of .rb classes that exist on-disk
gather up and return just names of .rb classes that exist on-disk
gather up and return just names of . rb classes that exist on - disk
def find_script_plugins(config)
    config[:plugins][:load_paths].each do |root|
      config[:plugins][:enabled].each do |plugin|
        script_plugin_path = File.join(root, plugin, "lib", "#{plugin}.rb")
        old_script_plugin_path = File.join(root, plugin, "#{plugin}.rb")
        if @file_wrapper.exist?(script_plugin_path) or @file_wrapper.exist?(old_script_plugin_path)
          @script_plugins << plugin 
        end
        if @file_wrapper.exist?(old_script_plugin_path)
          $stderr.puts "WARNING: Depreciated plugin style used in #{plugin}. Use new directory structure!"
        end
      end
    end
    return @script_plugins 
  end
def find_script_plugins ( config ) config [ :plugins ] [ :load_paths ] . each do | root | config [ :plugins ] [ :enabled ] . each do | plugin | script_plugin_path = File . join ( root , plugin , "lib" , "#{plugin}.rb" ) old_script_plugin_path = File . join ( root , plugin , "#{plugin}.rb" ) if @file_wrapper . exist? ( script_plugin_path ) or @file_wrapper . exist? ( old_script_plugin_path ) @script_plugins << plugin end if @file_wrapper . exist? ( old_script_plugin_path ) $stderr . puts "WARNING: Depreciated plugin style used in #{plugin}. Use new directory structure!" end end end return @script_plugins end
gather up and return just names of .rb classes that exist on-disk
gather up and return just names of . rb classes that exist on - disk
# Add the old path here to support legacy style. Eventaully remove. # Print depreciation warning.
config