Bot::Cobalt::Conf::File::Plugins - Bot::Cobalt plugins config
my $plugins_cfg = Bot::Cobalt::Conf::File::Plugins->new( etcdir => $path_to_etcdir, cfg_path => $path_to_plugins_cf, ); ## Retrieve array reference of plugin aliases seen: my $plugins_arr = $plugins_cfg->list_plugins; ## Retrieve Bot::Cobalt::Conf::File::PerPlugin object: my $this_plugin_cf = $plugins_cfg->plugin( $alias );
This is the Bot::Cobalt::Conf::File subclass for "plugins.conf" -- its primary purpose is to handle Bot::Cobalt::Conf::File::PerPlugin instances, retrievable via "plugin".
The constructor requires a etcdir to be used as a relative base path for plugin-specific configuration files.
(This is a core configuration class; there is generally no need for plugin authors to use these objects directly.)
Takes a plugin alias. Removes the configuration object for the specified plugin.
Takes a plugin alias and a Bot::Cobalt::Conf::File::PerPlugin or subclass thereof. Installs the new object under the specified alias.
Returns an array reference of currently tracked plugin aliases.
Takes a plugin alias. Loads or re-instances the Bot::Cobalt::Conf::File::PerPlugin object for the specified plugin.
Takes a plugin alias. Returns the Bot::Cobalt::Conf::File::PerPlugin object for the specified plugin (or boolean false).
Jon Portnoy <avenj@cobaltirc.org>
To install Bot::Cobalt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Cobalt
CPAN shell
perl -MCPAN -e shell install Bot::Cobalt
For more information on module installation, please visit the detailed CPAN module installation guide.