The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Brickyard::PluginBundle::Filter - Plugin bundle to filter another plugin bundle

SYNOPSIS

In your registry.ini:

  ; use [@MyBundle], but replace the [FooBar] plugin with a custom one
  [*@Filter]
  bundle = @MyBundle
  remove = FooBar
  mybundle_config1 = value1
  mybundle_config2 = value2

  [Better::FooBar]
  baz = frobnule
  baz = frobnule2

DESCRIPTION

This plugin bundle wraps and modifies another plugin bundle. It includes all the configuration for the bundle named in the bundle attribute, but removes all the entries whose package is given in the remove attributes.

Options prefixed with - will be passed to the bundle to be filtered.

METHODS

bundle

Read-write accessor for the name of the bundle that should be filtered. It will be expanded as per Brickyard's expand_package() method.

remove

Read-write accessor for the name(s) of plugins that should be removed from the bundle. These names too will be expanded as per Brickyard's expand_package() method.

bundle_config

Loads the target bundle's configuration, filters the plugins and returns the remaining configuration.

remove_from_config

Takes a bundle configuration and a reference to an array of package names that should be removed from the bundle configuration. Returns the filtered configuration.