Trystan Johnson > Farly-0.25 > Farly::Opts::Search

Download:
Farly-0.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.25   Source   Latest Release: Farly-0.26

NAME ^

Farly::Opts::Search - Create a Farly::Object from a Getopts hash

DESCRIPTION ^

Farly::Opts::Search converts a Getopt::Long options hash to an Farly::Object which can be used to search a Farly::Object::List<Farly::Object> firewall model.

Farly::Opts::Search can also create a Farly::Object::List<Farly::Object> container object from a configuration file. The container is used as a filter to exclude firewall rules from the search results of the current Farly firewall model.

METHODS ^

new( \%opts )

The constructor. The Getopt::Long GetOptions hash is provided.

  $search_parser = Farly::Opts::Search->new( \%opts );

search()

Returns a Farly::Object search object used to search for firewall rules in the current Farly firewall model.

  $search_object = $search_parser->search();

filter()

Returns a Farly::Object::List<Farly::Object> container used to exclude firewall rules from the search results of the current Farly firewall model.

  $filter_set = $search_parser->filter();

COPYRIGHT AND LICENCE ^

Farly::Opts::Search Copyright (C) 2012 Trystan Johnson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

syntax highlighting: