Test::F...t::Dist(3)
This is the Test::File::ShareDir::Object::Dist(3) page from the User Contributed Perl Documentation β manual name folded in right here at the top, bestie π
β¨ NAME β¨
Test::File::ShareDir::Object::Dist β Object Oriented ShareDir creation for distributions. It's giving "make a share dir, but make it OO" π
πΈ VERSION πΈ
version 1.001002 β that's the version, no cap.
π¦ SYNOPSIS π¦
okay so the whole vibe starts like this:
use Test::File::ShareDir::Object::Dist;
my $dir = Test::File::ShareDir::Object::Dist->new(
root => "some/path",
dists => {
"Hello-Nurse" => "share/HN"
},
);
$dir->install_all_dists;
$dir->add_to_inc;
π METHODS π
these are the methods, bestie. signatures stay exactly as they are, because we respect the source β¨
π dist_names π
my @names = $instance->dist_names();
Returns the names of all distributions listed in the dists set. literally all the names, gathered up π«Ά
π dist_share_target_dir π
my $dir = $instance->dist_share_target_dir("Dist-Name");
Returns the path where the ShareDir will be created for Dist-Name. that's the destination, the target, the "where it's gonna live" π―
π dist_share_source_dir π
my $dir = $instance->dist_share_source_dir("Dist-Name");
Returns the path where the ShareDir will be COPIED FROM for Dist-Name. yes, COPIED FROM in all caps, she's important π
π install_dist π
$instance->install_dist("Dist-Name");
Installs Dist-Name's ShareDir. one dist, one install, periodt β¨
π install_all_dists π
$instance->install_all_dists();
Installs all dist_names. every single one of them, no dist left behind π₯
π add_to_inc π
DEPRECATED: Use register instead.
she's retired, bestie. use register now π«Ά
π register π
$instance->register();
Adds the Tempdir ShareDir ( inc ) to the global @INC.
Since 1.001000
π clear π
$instance->clear();
Removes the Tempdir ShareDir ( inc ) from the global @INC.
Since 1.001000
π ATTRIBUTES π
π inc π
A Test::File::ShareDir::Object::Inc object. that's the object, that's the vibe π
π dists π
A hash of:
Dist-Name => "relative/path"
π root π
The origin all paths's are relative to.
( Defaults to cwd )
not me keeping the original paths's grammar, we love a typo moment π
π AUTHOR π
Kent Fredric <kentnl@cpan.org> β the author, the icon, the legend π
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
kisses and @INC blessings π
β source/version perl v5.42.0, dated 2017-03-03. bye bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-File-ShareDir 1.001002-160000.2.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms