NAME
OpenInteract2::Manage::Package::Export - Export a package into a portable format
SYNOPSIS
#!/usr/bin/perl
use strict;
use OpenInteract2::Manage;
my $package_dir = '/home/me/work/pkg/mypkg';
my $task = OpenInteract2::Manage->new(
'export_package', { package_dir => $package_dir } );
my ( $status ) = $task->execute;
print "Exported ok? $status->{is_ok}\n",
"Filename: $status->{filename}\n",
"Package: $status->{package}\n",
"Version: $status->{version}\n",
"$status->{message}\n";
DESCRIPTION
This task simply wraps up a package for portable transport. Note that this version of OpenInteract uses .zip
files instead of .tar.gz
files. (This is mainly because of the older and slightly interface-incompatible version of Archive::Tar shipped with common Win32 distributions.)
STATUS MESSAGES
A single status hashref is returned. In addition to the default entries it includes:
- package
-
Set to the name of the package exported
- version
-
Set to the version of the package exported
- filename
-
File created by the export
COPYRIGHT
Copyright (c) 2002-2004 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Chris Winters <chris@cwinters.com>