IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24616 for trunk/console


Ignore:
Timestamp:
Jun 26, 2009, 4:26:43 PM (17 years ago)
Author:
jhoblitt
Message:

add basic pod/tests

Location:
trunk/console
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/console/MANIFEST

    r24613 r24616  
    1010scripts/console-config
    1111scripts/console-ipp-defaults
    12 t/001_load.t
     12t/00_distribution.t
     13t/01_load.t
  • trunk/console/lib/Console.pm

    r24610 r24616  
     1# Copyright (C) 2009  Joshua Hoblitt
     2
    13package Console;
    24
     
    8789
    88901;
     91
     92__END__
     93
     94=pod
     95
     96=head1 NAME
     97
     98Console - rcfile management for the 'console' util
     99
     100=head1 SYNOPSIS
     101
     102    use Console;
     103
     104    my $rcfile = Console::find_rcfile;
     105    my $c = Console::read_rcfile($rcfile);
     106    Console::add_host(config => $c, console => $con, hostname => $h);
     107    Console::delete_host(config => $c, hostname => $h);
     108
     109=head1 DESCRIPTION
     110
     111=head1 CREDITS
     112
     113Just me, myself, and I.
     114
     115=head1 SUPPORT
     116
     117Please contact the author directly via e-mail.
     118
     119=head1 AUTHOR
     120
     121Joshua Hoblitt <jhoblitt@cpan.org>
     122
     123=head1 COPYRIGHT
     124
     125Copyright (C) 2009  Joshua Hoblitt.  All rights reserved.
     126
     127This program is free software; you can redistribute it and/or modify it under
     128the terms of the GNU General Public License as published by the Free Software
     129Foundation; either version 2 of the License, or (at your option) any later
     130version.
     131
     132This program is distributed in the hope that it will be useful, but WITHOUT ANY
     133WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     134PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     135
     136You should have received a copy of the GNU General Public License along with
     137this program; if not, write to the Free Software Foundation, Inc., 59 Temple
     138Place - Suite 330, Boston, MA  02111-1307, USA.
     139
     140The full text of the license can be found in the LICENSE file included with
     141this module, or in the L<perlgpl> Pod as supplied with Perl 5.8.1 and later.
     142
     143=head1 SEE ALSO
     144
     145L<Config::YAML>
  • trunk/console/t/01_load.t

    r24614 r24616  
    1 # -*- perl -*-
     1#!/usr/bin/perl
    22
    3 # t/001_load.t - check module loading and create testing directory
     3# Copryight (C) 2009  Joshua Hoblitt
    44
    5 use Test::More tests => 2;
     5use strict;
     6use warnings FATAL => qw( all );
    67
    7 BEGIN { use_ok( 'console' ); }
     8use lib qw( ./t ./lib );
    89
    9 my $object = console->new ();
    10 isa_ok ($object, 'console');
     10use Test::More tests => 1;
    1111
    12 
     12BEGIN { use_ok( 'Console' ); }
Note: See TracChangeset for help on using the changeset viewer.