1Test::File::ShareDir::TUesmeprDiCroOnbtjreicbtu(t3e)d PeTrelstD:o:cFuimleen:t:aSthiaorneDir::TempDirObject(3)
2
3
4
6 Test::File::ShareDir::TempDirObject - Internal Object to make code
7 simpler.
8
10 version 1.001002
11
13 my $object = $class->new({
14 -root => 'foo', # optional
15 -share => {
16 -module => {
17 'baz' => 'dir',
18 },
19 -dist => {
20 'Task-baz' => 'otherdir',
21 },
22 },
23 });
24
25 # installs a sharedir for 'baz' by copying 'foo/dir'
26 $object->_install_module('baz');
27
28 # installs a shardir for distribution 'Task-baz' by copying 'foo/otherdir'
29 $object->_install_dist('Task-baz');
30
31 # add to @INC
32 unshift @INC, $object->_tempdir->stringify;
33
35 new
36 Creates a new instance of this object.
37
39 Kent Fredric <kentnl@cpan.org>
40
42 This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
43
44 This is free software; you can redistribute it and/or modify it under
45 the same terms as the Perl 5 programming language system itself.
46
47
48
49perl v5.30.1 2020-01T-e3s0t::File::ShareDir::TempDirObject(3)