class Ohai::Loader::PluginFile
Simple struct like objects to track the path of a plugin and the root directory of plugins in which we found it. We don't care about the relative paths of v7 plugins, but in v6 plugins, dependencies are specified by calling `require_plugin` with a relative path. To manage this, we track the path and root of each file as we discover them so we can feed this into the v6 “dependency solver” as we load them.
Public Class Methods
find_all_in(plugin_dir)
click to toggle source
Finds all the *.rb files under the configured paths in :plugin_path
# File lib/ohai/loader.rb, line 40 def self.find_all_in(plugin_dir) Dir[File.join(plugin_dir, "**", "*.rb")].map do |file| new(file, plugin_dir) end end