Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Manage::Website::RemovePackage - Remove a package from a website
#!/usr/bin/perl use strict; use OpenInteract2::Manage; my $package = 'mypkg'; my $website_dir = '/home/httpd/testsite'; my $task = OpenInteract2::Manage->new( 'remove_package', { package => $package, website_dir => $website_dir } ); my ( $status ) = $task->execute; print "Action: $s->{action}\n", "Status OK? $s->{is_ok}\n", "$s->{message}\n"; }
Removes one or more packages from a website. This does not delete the files used by the package but instead just deletes it from the repository. Packages that aren't in the repository are dead to the website.
No additional information in the returned status messages.
In addition to 'website_dir' you must define:
Name(s) of packages you want to remove.
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.