Test::File::ShareDir::TempDirObject(3pm)

Test::File::ShareDir::TempDirObject3pm

Internal object to make code simpler.

Usage

    my $object = $class->new({
        -root => 'foo', # optional
        -share => {
            -module => {
                'baz' => 'dir',
            },
            -dist => {
                'Task-baz' => 'otherdir',
            },
        },
    });
    # installs a sharedir for 'baz' by copying 'foo/dir'
    $object->_install_module('baz');
    # installs a shardir for distribution 'Task-baz' by copying 'foo/otherdir'
    $object->_install_dist('Task-baz');
    # add to @INC
    unshift @INC, $object->_tempdir->stringify;

Version

version 1.001002

Methods

new

Creates a new instance of this object.

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12–13

Author

Kent Fredric <[email protected]>

From libtest-file-sharedir-perl 1.001002-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.