Ticket #1 (new enhancement)
Opened 3 years ago
Apply patch for modularized plugins from Bryan Richardson
| Reported by: | btrichardson@… | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 1.0.3 | Keywords: | modular patch bryan email |
| Cc: |
Description
Bryan sent me the following mail:
I've created a patch for PluginFactory that allows users to modularize their plugins, place them in a directory structure similar to how their modularized, and have PluginFactory create them accordingly. For example:
in plugins/databases/mysql.rb
module Databases class Mysql < Driver ...implementation... end end
in runme.rb
Driver.create 'Databases::Mysql'
The patch only required a few lines to be added in PluginFactory#make_require_path. Let me know if you would like to work the patch into the main code for PluginFactory, or if this functionality already exists and I'm just overlooking it somehow.
I'm replying, and referencing this ticket.
Bryan, please attach your patch to this ticket and I'll get it committed.
Attachments
Change History
Changed 3 years ago by btrichardson
- Attachment pluginfactory.patch added

Patch for PluginFactory?