OTRS::Repository - parse OTRS repositories' otrs.xml files to search for add ons
version 0.05
use OTRS::Repository; my $repo = OTRS::Repository->new( sources => [qw! http://opar.perl-services.de/otrs.xml http://ftp.otrs.org/pub/otrs/packages/otrs.xml http://ftp.otrs.org/pub/otrs/itsm/packages33/otrs.xml !], ); my ($url) = $repo->find( name => 'ITSMCore', otrs => '3.3', ); print $url;
new has only one mandatory parameter: sources. This has to be an array reference of URLs for repositories' otrs.xml files.
new
my $repo = OTRS::Repository->new( sources => [qw! http://opar.perl-services.de/otrs.xml http://ftp.otrs.org/pub/otrs/packages/otrs.xml http://ftp.otrs.org/pub/otrs/itsm/packages33/otrs.xml !], );
Search for an add on for a given OTRS version in those repositories. It returns a list of urls if the add on was found, undef otherwise.
undef
my @urls = $repo->find( name => 'ITSMCore', otrs => '3.3', );
Find a specific version
my @urls = $repo->find( name => 'ITSMCore', otrs => '3.3', version => '1.4.8', );
Renee Baecker <github@renee-baecker.de>
This software is Copyright (c) 2013 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install OTRS::Repository, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OTRS::Repository
CPAN shell
perl -MCPAN -e shell install OTRS::Repository
For more information on module installation, please visit the detailed CPAN module installation guide.