Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Manage::Package::Export - Export a package into a portable format
#!/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";
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.)
A single status hashref is returned. In addition to the default entries it includes:
Set to the name of the package exported
Set to the version of the package exported
File created by the export
Copyright (c) 2002-2003 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.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.