The Rails::Plugin::FileSystemLocator will try to locate plugins by examining the directories the the paths given in configuration.plugin_paths. Any plugins that can be found are returned in a list.
The criteria for a valid plugin in this case is found in Rails::Plugin#valid?, although other subclasses of Rails::Plugin::Locator can of course use different conditions.
| Public Methods | |
|---|---|
| plugins | Returns all the plugins which can be loaded in the filesystem, under the paths given by configuration.plugin_paths. |
| Private Methods | |
|---|---|
| create_ |
Attempts to create a plugin from the given path. If the created plugin is valid? (see Rails::Plugin#valid?) then the plugin instance is returned; otherwise nil. |
| locate_ |
This starts at the base path looking for valid plugins (see Rails::Plugin#valid?). Since plugins can be nested arbitrarily deep within an unspecified number of intermediary directories, this method runs recursively until it finds a plugin directory, e.g. |
<code/>and<pre/>for code samples.