documentation and attribution fixes
Robert 'phaylon' Sedlacek [Thu, 30 Aug 2012 20:41:05 +0000 (20:41 +0000)]
23 files changed:
bin/system-introspector
lib/System/Introspector.pm
lib/System/Introspector/Config.pm
lib/System/Introspector/Gatherer.pm
lib/System/Introspector/Gatherer/Bridge.pm
lib/System/Introspector/Probe/DiskUsage.pm
lib/System/Introspector/Probe/FileHandles.pm
lib/System/Introspector/Probe/Groups.pm
lib/System/Introspector/Probe/Host.pm
lib/System/Introspector/Probe/Hosts.pm
lib/System/Introspector/Probe/LibDirs/Perl.pm
lib/System/Introspector/Probe/MountPoints.pm
lib/System/Introspector/Probe/Nagios/CheckMkAgent.pm
lib/System/Introspector/Probe/Packages/Apt.pm
lib/System/Introspector/Probe/Perls.pm
lib/System/Introspector/Probe/Processes.pm
lib/System/Introspector/Probe/Puppet.pm
lib/System/Introspector/Probe/Repositories/Git.pm
lib/System/Introspector/Probe/ResolvConf.pm
lib/System/Introspector/Probe/Sudoers.pm
lib/System/Introspector/Probe/Users.pm
lib/System/Introspector/State.pm
lib/System/Introspector/Util.pm

index 119c4a9..68bda45 100755 (executable)
@@ -53,6 +53,10 @@ system-introspector - Generate System Introspection Data
 
     system-introspector --storage <path> [OPTIONS]
 
+=head1 DESCRIPTION
+
+See L<System::Introspector/DESCRIPTION> for more details.
+
 =head1 OPTIONS
 
 =head2 -s <path>, --storage <path>
@@ -75,4 +79,16 @@ Fetch the specified group. Can be used multiple times.
 
 Display help.
 
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
 =cut
index 2bf4ec8..acbd4a3 100644 (file)
@@ -25,24 +25,26 @@ introspection. The introspection is done executing a set of probes
 on the remote system that gather specific information. Gathered results
 are stored in JSON format.
 
-=head1 CONTRIBUTORS
+=head1 AUTHOR
 
-phaylon - Robert Sedlacek (cpan:PHAYLON) <rs@474.at>
+ phaylon - Robert Sedlacek (cpan:PHAYLON) <rs@474.at>
 
-=head1 AUTHOR
+=head1 CONTRIBUTORS
 
-mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>
+ mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>
 
-=head1 SPONSORED
+=head1 SPONSORS
 
 Lots of this stuff sponsored by L<http://socialflow.com>.
 
 =head1 COPYRIGHT
 
-Copyright (c) 2012 the System::Introspector L</AUTHOR> and L</CONTRIBUTORS>
-as listed above.
+Copyright (c) 2012 the System::Introspector L</AUTHOR>, L</CONTRIBUTORS>
+and L</SPONSORS> as listed above.
 
 =head1 LICENSE
 
 This library is free software and may be distributed under the same terms
 as perl itself.
+
+=cut
index ff71115..898f1b3 100644 (file)
@@ -75,3 +75,29 @@ sub config_for_group {
 }
 
 1;
+
+=head1 NAME
+
+System::Introspector::Config - Configuration file access
+
+=head1 SEE ALSO
+
+=over
+
+=item L<System::Introspector>
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index d88f590..36a8288 100644 (file)
@@ -58,3 +58,31 @@ sub new_from_spec {
 }
 
 1;
+
+__END__
+
+=head1 NAME
+
+System::Introspector::Gatherer - Remote Gather Handler
+
+=head1 SEE ALSO
+
+=over
+
+=item L<System::Introspector>
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index e802691..ffe357c 100644 (file)
@@ -17,3 +17,31 @@ sub _build_remote {
 sub gather { (shift)->remote->gather(@_) }
 
 1;
+
+__END__
+
+=head1 NAME
+
+System::Introspector::Gatherer::Bridge - Bridged Connections
+
+=head1 SEE ALSO
+
+=over
+
+=item L<System::Introspector>
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 0f210c4..be908c2 100644 (file)
@@ -39,7 +39,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::DiskUsage - Gather disk space usage data
+System::Introspector::Probe::DiskUsage - Gather disk space usage data
 
 =head1 DESCRIPTION
 
@@ -53,5 +53,16 @@ Uses C<df> to get data about current disk usage.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index a3289b2..0f17745 100644 (file)
@@ -36,7 +36,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::FileHandles - Gather opened filehandles
+System::Introspector::Probe::FileHandles - Gather opened filehandles
 
 =head1 DESCRIPTION
 
@@ -50,5 +50,16 @@ Uses C<lsof> to build a list of open filehandles.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index abdbb7c..44cd6ce 100644 (file)
@@ -39,7 +39,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Groups - Gather group information
+System::Introspector::Probe::Groups - Gather group information
 
 =head1 DESCRIPTION
 
@@ -53,5 +53,16 @@ Uses C</etc/group> to gather information about groups.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 530875f..6fc2528 100644 (file)
@@ -57,7 +57,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Host - Gather generic host information
+System::Introspector::Probe::Host - Gather generic host information
 
 =head1 DESCRIPTION
 
@@ -71,5 +71,16 @@ Gathers the hostname and information provided by C<uname>.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index bc2ab76..1ff7f73 100644 (file)
@@ -30,7 +30,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Hosts - Gather known hosts
+System::Introspector::Probe::Hosts - Gather known hosts
 
 =head1 DESCRIPTION
 
@@ -50,5 +50,16 @@ The path to the C<hosts> file that should be read. Defaults to C</etc/hosts>.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 1e34ba9..015150b 100644 (file)
@@ -74,7 +74,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::LibDirs::Perl - Gather perl lib directory data
+System::Introspector::Probe::LibDirs::Perl - Gather perl lib directory data
 
 =head1 DESCRIPTION
 
@@ -96,5 +96,16 @@ to C</>.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index ae07947..2a68a30 100644 (file)
@@ -64,7 +64,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::MountPoints - Gather moint point information
+System::Introspector::Probe::MountPoints - Gather moint point information
 
 =head1 DESCRIPTION
 
@@ -78,5 +78,16 @@ Reads C<fstab> and C<mtab> files to provide mount point information.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 310b91b..9016b2c 100644 (file)
@@ -35,7 +35,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Nagios::CheckMkAgent - Gather check_mk_agent output
+System::Introspector::Probe::Nagios::CheckMkAgent - Gather check_mk_agent output
 
 =head1 DESCRIPTION
 
@@ -49,6 +49,16 @@ Parses the output of C<check_mk_agent> to gather data available to Nagios.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
 
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 615d7ae..5de5813 100644 (file)
@@ -122,7 +122,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Packages::Apt - Gather APT package status
+System::Introspector::Probe::Packages::Apt - Gather APT package status
 
 =head1 DESCRIPTION
 
@@ -136,4 +136,16 @@ Uses C<dpkg-query> to list all installed packages.
 
 =back
 
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
 =cut
index bb8af72..e898711 100644 (file)
@@ -74,3 +74,36 @@ sub _find_possible_perl_configs {
 }
 
 1;
+
+__END__
+
+=head1 NAME
+
+System::Introspector::Probe::Perls - Locate perl installations
+
+=head1 DESCRIPTION
+
+Tries to locate perl installations on the system and collects
+information about them.
+
+=head1 SEE ALSO
+
+=over
+
+=item L<System::Introspector>
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 3d1b962..8f711e4 100644 (file)
@@ -79,7 +79,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Processes - Gather running processes
+System::Introspector::Probe::Processes - Gather running processes
 
 =head1 DESCRIPTION
 
@@ -93,5 +93,16 @@ Uses C<ps> to gather a list of all running processes.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 4c3fde5..5cd141f 100644 (file)
@@ -52,7 +52,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Puppet - Gather puppet agent information
+System::Introspector::Probe::Puppet - Gather puppet agent information
 
 =head1 DESCRIPTION
 
@@ -78,4 +78,16 @@ Defaults to C</var/lib/puppet/state/resources.txt>.
 
 =back
 
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
 =cut
index bd5ef23..1ac056e 100644 (file)
@@ -125,7 +125,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Repositories::Git - Gather Git repository info
+System::Introspector::Probe::Repositories::Git - Gather Git repository info
 
 =head1 DESCRIPTION
 
@@ -145,5 +145,16 @@ This is the root path for the search of git directories. Defaults to C</>.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 753085f..16b7a26 100644 (file)
@@ -30,7 +30,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::ResolvConf - Gather name resolution configuration
+System::Introspector::Probe::ResolvConf - Gather name resolution configuration
 
 =head1 DESCRIPTION
 
@@ -51,5 +51,16 @@ C</etc/resolv.conf>.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 0850752..9db49ac 100644 (file)
@@ -71,7 +71,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Sudoers - Gather sudoer information
+System::Introspector::Probe::Sudoers - Gather sudoer information
 
 =head1 DESCRIPTION
 
@@ -97,5 +97,16 @@ The hostname used to resolve C<%h> hostname markers in inclusions.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index e0baa5b..7e31df7 100644 (file)
@@ -103,7 +103,7 @@ __END__
 
 =head1 NAME
 
-System::Introspector::Users - Gather user information
+System::Introspector::Probe::Users - Gather user information
 
 =head1 DESCRIPTION
 
@@ -118,5 +118,16 @@ installed SSH public keys.
 
 =back
 
-=cut
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
 
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
index 876ab3d..7d49312 100644 (file)
@@ -142,15 +142,11 @@ System::Introspector::State - Gather system state
 =head1 SYNOPSIS
 
     my $state = System::Introspector::State->new(
-        host    => 'foo.example.com',
-        storage => $storage_obj,
-        config  => {
-            introspect => [qw( ProbeName )],
-        },
+        root    => '/root/path',
+        config  => $config_object,
     );
 
-    my $data = $state->fetch;
-    $state->fetch_and_store;
+    $state->gather;
 
 =head1 DESCRIPTION
 
@@ -161,31 +157,38 @@ it with a L<File::Tree::Snapshot> object.
 
 =head2 config
 
-A hash reference containing a C<introspect> key with an array reference
-value containing a list of probe names without the
-C<System::Introspector::Probe::> prefix. This attribute is required.
+A L<System::Introspector::Config>
 
-=head2 host
+=head2 root
 
-An optional hostname. If no hostname is supplied, the local configuration
-data will be fetched.
+Path to the storage root.
 
-=head2 storage
+=head1 METHODS
 
-A L<File::Tree::Snapshot> object.
+=head2 gather
 
-=head1 METHODS
+    $state->gather;
+
+Fetches all probe data and stores it in the tree below the L</root>.
+
+=head1 SEE ALSO
+
+=over
 
-=head2 fetch
+=item L<System::Introspector>
 
-    my $data = $state->fetch;
+=back
 
-Fetches all probe data.
+=head1 COPYRIGHT
 
-=head2 fetch_and_store
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
 
-    $state->fetch_and_store;
+=head1 LICENSE
 
-Fetches all probe data and stores it in the L</storage>.
+This library is free software and may be distributed under the same terms
+as perl itself.
 
 =cut
index a953dc2..8681b28 100644 (file)
@@ -123,3 +123,35 @@ sub output_from_file {
 }
 
 1;
+
+__END__
+
+=head1 NAME
+
+System::Introspector::Util - Utility functions
+
+=head1 DESCRIPTION
+
+Contains utility functions for L<System::Introspector>.
+
+=head1 SEE ALSO
+
+=over
+
+=item L<System::Introspector>
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012 the L<System::Introspector>
+L<AUTHOR|System::Introspector/AUTHOR>,
+L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
+L<SPONSORS|System::Introspector/SPONSORS>.
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut