App-DocKnot
view release on metacpan or search on metacpan
lib/App/DocKnot/Config.pm view on Meta::CPAN
=over 4
=item 1.
F<$XDG_CONFIG_HOME/docknot> (F<$HOME/.config/docknot> by default)
=item 2.
F<$XDG_CONFIG_DIRS/docknot> (F</etc/xdg/docknot> by default)
=item 3.
Files included in the package.
=back
The global configuration file should be named F<config.yaml> in that
directory. The license metadata should be named F<licenses.yaml>.
Default license metadata is included with the App::DocKnot module and is used
unless more specific configuration files exist. Be aware that, if such a
configuration file exists, the data is not merged and only the configuration
file is used.
=head1 CONFIGURATION
=head1 Global Configuration
The global configuration file (F<$HOME/.config/docknot/config.yaml> by
default) may contain the following keys:
=over 4
=item archivedir
Specifies the directory into which distribution tarballs are placed by the
C<docknot release> command. The current distribution will be put in a
subdirectory named after the C<distribution.section> key in the package
configuration. Older versions will be moved to the F<ARCHIVE> subdirectory of
I<archivedir>.
If this is not specified, the B<-a> option to C<docknot release> is mandatory.
=item distdir
Specifies the directory into which to build and store distribution tarballs
(via the C<docknot dist> command). Subdirectories of this directory are used
as working directories while the distribution is being built, and the final
tarballs are stored in this directory.
If this is not specified, the B<-d> options to C<docknot dist> and C<docknot
release> is mandatory.
=item pgp_key
Sign distribution tarballs generated via C<docknot dist> with this PGP key.
Equivalent to the B<-p> option to C<docknot dist>.
=item versions
Path to the F<.versions> file that should be updated by C<docknot release>. A
F<.versions> file records the versions and release dates of software packages.
See L<App::Docknot::Spin::Versions> for more information.
=back
=head1 CLASS METHODS
=over 4
=item new(ARGS)
Create a new App::DocKnot::Config object. This should be used for all
subsequent actions. ARGS should be a hash reference with one or more of the
following keys:
=over 4
=item metadata
The path to the metadata for a package. Default: F<docs/docknot.yaml>
relative to the current directory.
=back
=back
=head1 INSTANCE METHODS
=over 4
=item config()
Load the metadata for the package and return it as a hash. The possible keys
of this hash and the possible values are not yet documented.
=item global_config()
Load the global DocKnot configuration and return it as a hash.
=back
=head1 AUTHOR
Russ Allbery <rra@cpan.org>
=head1 COPYRIGHT AND LICENSE
Copyright 2013-2022 Russ Allbery <rra@cpan.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
( run in 0.738 second using v1.01-cache-2.11-cpan-39bf76dae61 )