File::Tempdir::ForPackage::FromArchive - Inflate any archive to a temporary directory and work in it.
version 0.1.0
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. }); }
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.
ForPackage
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.
Kent Fredric <kentfredric@gmail.com>
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.
To install File::Tempdir::ForPackage::FromArchive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Tempdir::ForPackage::FromArchive
CPAN shell
perl -MCPAN -e shell install File::Tempdir::ForPackage::FromArchive
For more information on module installation, please visit the detailed CPAN module installation guide.