Test::File::ShareDir::Object::Dist(3pm)

Test::File::ShareDir::Object::Dist3pm

Object oriented sharedir creation for distributions

Usage

    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;

Version

version 1.001002

Methods

"dist_names"

    my @names = $instance->dist_names();

Returns the names of all distributions listed in the "dists" set.

"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"

"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"

"install_dist"

    $instance->install_dist("Dist-Name");

Installs "Dist-Name"'s "ShareDir"

"install_all_dists"

    $instance->install_all_dists();

Installs all "dist_names"

"add_to_inc"

DEPRECATED: Use "register" instead.

"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.

"dists"

A hash of :

    Dist-Name => "relative/path"

"root"

The origin all paths's are relative to.

( Defaults to "cwd" )

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 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.