1Test::File::ShareDir::OUbsjeerctC:o:nMtordiubluet(e3d)PTeerslt:D:oFciulmee:n:tSahtairoenDir::Object::Module(3)
2
3
4

NAME

6       Test::File::ShareDir::Object::Module - Object Oriented ShareDir
7       creation for modules
8

VERSION

10       version 1.001002
11

SYNOPSIS

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

METHODS

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

ATTRIBUTES

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

AUTHOR

85       Kent Fredric <kentnl@cpan.org>
86
88       This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
89
90       This is free software; you can redistribute it and/or modify it under
91       the same terms as the Perl 5 programming language system itself.
92
93
94
95perl v5.34.0                      2022-0T1e-s2t1::File::ShareDir::Object::Module(3)
Impressum