Configd
view release on metacpan or search on metacpan
lib/Configd/Language.pm view on Meta::CPAN
=head2 $language->fragments($file)
The fragment files for one managed file, in the order they are merged.
Sorted by name, so the numeric prefixes everybody already writes on C<conf.d>
entries do what they look like they do. Names starting with a dot are skipped,
and so is anything ending in C<~>, C<.disabled>, C<.bak>, or one of the suffixes
dpkg and rpm leave behind -- C<.dpkg-old>, C<.dpkg-new>, C<.dpkg-dist>,
C<.rpmsave>, C<.rpmnew>. Editors and package managers leave those lying about,
and a stray backup silently taking part in the merge is a bad afternoon.
=head2 $language->merge(@fragment_sets)
One list of directives out of several, applying C<accumulates> to decide which
of two directives for the same key wins and which of them join up.
An accumulating directive joins as a list of items, not as two strings. Each
value is split into its items with C<items>, an item that the list already
holds is dropped, and C<combine> has the last word. So a fragment that
repeats what C<00-original> says changes nothing, which is what it meant, and
( run in 1.633 second using v1.01-cache-2.11-cpan-3f962061493 )