module

Autobot::Plugins::Loader

Loader for auto-discovering and registering plugins.

Plugins are registered via Loader.register in their shard's initialization code:

Autobot::Plugins::Loader.register(MyPlugin.new)

When load_all is called, all registered plugins are added to the given registry and set up with the context.

Class methods

clear_pending

Clear all pending plugins (for testing).

Source
load_all(registry : Registry, context : PluginContext) : Nil

Load all registered plugins into the registry and set them up.

Source
pending

Get the list of pending (not yet loaded) plugins.

Source
register(plugin : Plugin) : Nil

Register a plugin for auto-discovery. Call this at the top level of your shard to make the plugin available.

Source