1Test::File::ShareDir::OUbsjeerctC:o:nDtirsitb(u3t)ed PerTlesDto:c:uFmielnet:a:tSihoanreDir::Object::Dist(3)
2
3
4

NAME

6       Test::File::ShareDir::Object::Dist - Object Oriented ShareDir creation
7       for distributions
8

VERSION

10       version 1.001002
11

SYNOPSIS

13           use Test::File::ShareDir::Object::Dist;
14
15           my $dir = Test::File::ShareDir::Object::Dist->new(
16               root    => "some/path",
17               dists => {
18                   "Hello-Nurse" => "share/HN"
19               },
20           );
21
22           $dir->install_all_dists;
23           $dir->add_to_inc;
24

METHODS

26   "dist_names"
27           my @names = $instance->dist_names();
28
29       Returns the names of all distributions listed in the "dists" set.
30
31   "dist_share_target_dir"
32           my $dir = $instance->dist_share_target_dir("Dist-Name");
33
34       Returns the path where the "ShareDir" will be created for "Dist-Name"
35
36   "dist_share_source_dir"
37           my $dir = $instance->dist_share_source_dir("Dist-Name");
38
39       Returns the path where the "ShareDir" will be COPIED FROM for
40       "Dist-Name"
41
42   "install_dist"
43           $instance->install_dist("Dist-Name");
44
45       Installs "Dist-Name"'s "ShareDir"
46
47   "install_all_dists"
48           $instance->install_all_dists();
49
50       Installs all "dist_names"
51
52   "add_to_inc"
53       DEPRECATED: Use "register" instead.
54
55   "register"
56           $instance->register();
57
58       Adds the "Tempdir" "ShareDir" (  "inc" ) to the global @INC
59
60       Since 1.001000
61
62   "clear"
63           $instance->clear();
64
65       Removes the "Tempdir" "ShareDir" ( "inc" ) from the global @INC
66
67       Since 1.001000
68

ATTRIBUTES

70   "inc"
71       A "Test::File::ShareDir::Object::Inc" object.
72
73   "dists"
74       A hash of :
75
76           Dist-Name => "relative/path"
77
78   "root"
79       The origin all paths's are relative to.
80
81       ( Defaults to "cwd" )
82

AUTHOR

84       Kent Fredric <kentnl@cpan.org>
85
87       This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
88
89       This is free software; you can redistribute it and/or modify it under
90       the same terms as the Perl 5 programming language system itself.
91
92
93
94perl v5.30.0                      2019-07-T2e6st::File::ShareDir::Object::Dist(3)
Impressum