Module: Wukong::Plugin
- Included in:
- Local
- Defined in:
- lib/wukong/plugin.rb
Overview
Include this module in your own class or module to have it register itself as a Wukong plugin.
Your class or module must define the following methods:
configure
called with a (pre-resolved) Configliere::Param argument and the basename of the running programboot
called with a (resolved) Configliere::Param argument and the current working directory of the running program, reacts to any settings as necessary
Subclasses of Wukong::Runner will automatically load and boot each plugin.
Class Method Summary collapse
-
.included(mod) ⇒ Object
:nodoc:.
Class Method Details
.included(mod) ⇒ Object
:nodoc:
40 41 42 |
# File 'lib/wukong/plugin.rb', line 40 def self.included mod PLUGINS << mod unless PLUGINS.include?(mod) end |