Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

arch::tarball(3pm) [debian man page]

Arch::Tarball(3pm)					User Contributed Perl Documentation					Arch::Tarball(3pm)

NAME
Arch::Tarball - an interface to create and work with tarballs SYNOPSIS
use Arch::Tarball my $tarball = Arch::Tarball->new; my $pipe = $tarball->create( dir => '/path/to/subdir-to-pack', base_name => 'new-subdir-to-pack', pipe => 1, ); DESCRIPTION
Arch::Tarball provides an object oriented interface to work with (create, examine or extract) standard gzipped tarballs. Note: As functionality is added only when needed, a lot of features are currently not implemented. METHODS
The following functions are available: new, create, extract, list. new %opts Creates a new Arch::Tarball object. The following parameters can be set via %opts: tar The name of the tar executable. Defaults to "tar". file The filename of the Tarball. create %opts Creates a new tarball (tar.gz) from a given directory structure. create understands the following options: dir (mandatory) Specifies the base directory for the tarball. The given directory and recursively its content will be added to the tarball. The directory's basename will be used as the first and the only subdirectory in the tarball. base_name Allow the programmer to specify a different base directory name for the tarball content than the basename of dir. In this case, 'cp' process is launched to temporarily rename the last element of dir. pipe When set, create does not create a physical tarball but writes the tarballs content to a newly created pipe. The pipe is returned by the create method. Note: Currently the pipe option is mandatory. extract %opts Extracts the tarball to a given target directory, specified by dir option. If dir option is not given, a temporary directory is created that will hold the extracted dirs/files. This directory is returned. The file option specifies the tarball file name. It may be given in the constructor instead. list %opts (not implemented yet) Returns a list of files and directories in the tarball. BUGS
Most functionality is currently not implemented. If you need part of the missing functionality, please contact the authors. Patches are greatly appreciated. AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel). perl v5.10.1 2005-04-22 Arch::Tarball(3pm)

Check Out this Related Man Page

Arch::Test::Framework(3pm)				User Contributed Perl Documentation				Arch::Test::Framework(3pm)

NAME
Arch::Test::Framework - A test framework for Arch-Perl SYNOPSIS
use Arch::Test::Framework; my $fw = Arch::Test::Framework->new; my $archive = $fw->make_archive; my $version = $archive->make_version(); my $tree = $fw->make_tree($version); # # do something with $tree # $tree->import('initial import'); DESCRIPTION
Arch::Test::Framework is a framework to quickly generate testing data (archives, versions, trees, changesets, etc) for arch-perl unit tests. METHODS
new, arch_uid, home_dir, library_dir, archives_dir, trees_dir, make_archive, make_category, make_branch, make_version, make_tree. new [%args] Create a new arch-perl test environment. Valid keys for %args are home to specify an existing test environment to reuse, library to specify a different revision library path, archives to specify a different archives directory, and trees to specify a differente project tree directory. The default values are "$home/library", "$home/archives", and "$home/trees" respectively. A different arch user id can be selected with the userid key, the default is "Arch Perl Test <arch-perl-test@example.com>". arch_uid home_dir library_dir archives_dir trees_dir These methods return the environment parameters as initialized by new. make_archive [archive_name] Create a new archive in the archives directory. If archive_name is not specified a unique name is generated. The archive name is returned. Returns an Arch::Test::Archive reference for the archive. make_tree version [name] Create and initialize ("tla init-tree") a new project tree for version. I name is not specified, a unique identifier will be generated. Returns an Arch::Test::Tree reference for the project tree. AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel). perl v5.10.1 2005-03-28 Arch::Test::Framework(3pm)
Man Page