Dist::Zilla::Role::PluginBundle::Config::Slicer(3pm)

Dist::Zilla::Role::PluginBundle::Config::Slicer3pm

Pass portions of bundle config to plugins

Usage

  # in Dist::Zilla::PluginBundle::MyBundle
  with (
    'Dist::Zilla::Role::PluginBundle', # or PluginBundle::Easy
    'Dist::Zilla::Role::PluginBundle::Config::Slicer'
  );
  # Config::Slicer should probably be last
  # (unless you're doing something more complex)

Version

version 0.202

Overview

This role enables your Dist::Zilla Plugin Bundle to accept configuration customizations for the plugins it will load and merge them transparently.

  # dist.ini
  [@MyBundle]
  option = 1
  Included::Plugin.attribute = overwrite value
  AnotherPlug.array[0] = append value
  AnotherPlug.array[1] = append another value

See "CONFIGURATION SYNTAX" in Config::MVP::Slicer for details on how the configurations are handled.

This role adds a method modifier to "bundle_config", which is the method that the root "PluginBundle" role requires, and that "PluginBundle::Easy" wraps.

After "bundle_config" is called the modifier will update the returned plugin configurations with any values that were customized in the main bundle config.

Most of the work is done by Dist::Zilla::Config::Slicer (a subclass of Config::MVP::Slicer). Check out those modules if you want the same functionality but don't want to consume this role in your bundle.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

Author

Randy Stauner <[email protected]>

From libdist-zilla-config-slicer-perl 0.202-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.