Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Inflate any archive to a temporary directory and work in it.
Perl
Branch: build/master
Pull request Compare This branch is 10 commits ahead, 9 commits behind master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
corpus
lib/File/Tempdir/ForPackage
t
xt
.perltidyrc
Build.PL
Changes
LICENSE
MANIFEST
META.json
META.yml
README
dist.ini
perlcritic.rc
weaver.ini

README

NAME
    File::Tempdir::ForPackage::FromArchive - Inflate any archive to a
    temporary directory and work in it.

VERSION
    version 0.1.0

SYNOPSIS
     use File::Tempdir::ForPackage::FromArchive;

     my $stash = File::Tempdir::ForPackage::FromArchive->new(
      archive => 'path/to/archive.tar.gz',
     );
     while(1){
      $stash->run_once_in(sub{
       #  Disk thrashes here as
       #  archive is repeatedly checked out,
       #  modified, then erased.
      });
     }

DESCRIPTION
    Most features of this module are provided by
    File::Tempdir::"ForPackage", except that empty Tempdirs are constructed
    containing the contents of the specified archive with Archive-Any.

    This is useful if you have some sort of mutable directory state that you
    need to bundle with your distribution for testing as a nested archive,
    and you don't want changes to persist between test runs.

AUTHOR
    Kent Fredric <kentfredric@gmail.com>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2012 by Kent Fredric
    <kentfredric@gmail.com>.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

Something went wrong with that request. Please try again.