- COPYRIGHT AND LICENSE
Data::Collector::App - An application implementation for Data::Collector
use Data::Collector::App; my $collector = Data::Collector::App->new_with_options(); $collector->run();
This module integrates all the checks and logics of an application.
It supports getopt command line parsing and optional configuration files.
Using this implementation, one can write an application.
An optional configuration file. If it exists, it is read and used for the value of the rest of these attributes (if they are present in the file).
Type of engine (OpenSSH, for example).
Any additional arguments the engine might want.
Type of serialization (
YAML, for example).
Any additional arguments the serializer might want.
Any additional arguments the Info module might want.
You generally don't want to play with it, trust me.
A file to output to. If one is not provided, it will output the serialized result to stdout.
Creates a new instance of the application interface. This is the clean way of doing it. You would probably prefer
new_with_options described below.
The same as
new, only it parses command line arguments and takes care of reading a configuration file (if the correct argument for it is provided).
Runs the application: starts a new collector, collects the informtion and - depending on the options - either outputs the result to the screen or to a file.
Subroutine run after initialization. Used to create the
info_args attribute for the main
Sawyer X <firstname.lastname@example.org>
This software is copyright (c) 2012 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.