Module: Doing::Plugins
- Defined in:
- lib/doing/plugin_manager.rb
Overview
Plugin handling
Class Method Summary collapse
-
.available_plugins(type: :export) ⇒ Array<String>
Return array of available plugin names.
-
.list_plugins(options = {}) ⇒ Object
List available plugins to stdout.
-
.load_plugins(add_dir = nil) ⇒ Object
Load plugins from plugins folder.
-
.plugin_names(type: :export, separator: '|') ⇒ String
Return string version of plugin names.
-
.plugin_regex(type: :export) ⇒ Object
Return a regular expression of all plugin triggers for type.
- .plugin_templates(type: :export) ⇒ Object
- .plugins ⇒ Object
-
.plugins_path(add_dir = nil) ⇒ Object
Public: Setup the plugin search path.
-
.register(title, type, klass) ⇒ Object
Register a plugin.
- .template_for_trigger(trigger, type: :export) ⇒ Object
- .template_regex(type: :export) ⇒ Object
- .user_home ⇒ Object
- .valid_type(type, default: nil) ⇒ Object
- .validate_plugin(title, type, klass) ⇒ Object
Class Method Details
.list_plugins(options = {}) ⇒ Object
List available plugins to stdout
.load_plugins(add_dir = nil) ⇒ Object
Load plugins from plugins folder
.plugin_names(type: :export, separator: '|') ⇒ String
Return string version of plugin names
.plugin_regex(type: :export) ⇒ Object
Return a regular expression of all plugin triggers for type
.plugin_templates(type: :export) ⇒ Object
.plugins ⇒ Object
.plugins_path(add_dir = nil) ⇒ Object
Public: Setup the plugin search path
Returns an Array of plugin search paths
.register(title, type, klass) ⇒ Object
Register a plugin
param: +[String|Array]+ title The name of the plugin (can be an array of names)
param: +type+ The plugin type (:import, :export)
param: +klass+ The class responding to :render or :import
returns: Success boolean