method

register_plugin

register_plugin(name, spec, optional_plugin = false)
public

Runs the plugins.rb file in an isolated namespace, records the plugin actions it registers for and then passes the data to index to be stored.

@param [String] name the name of the plugin @param [Specification] spec of installed plugin @param [Boolean] optional_plugin, removed if there is conflict with any

other plugin (used for default source plugins)

@raise [MalformattedPlugin] if plugins.rb raises any error