| 1 | package XAS::Apps::Test::SSH::Server; | ||
| 2 | |||
| 3 | our $VERSION = '0.01'; | ||
| 4 | |||
| 5 | use XAS::Lib::SSH::Server; | ||
| 6 | use XAS::Class | ||
| 7 | debug => 0, | ||
| 8 | version => $VERSION, | ||
| 9 | base => 'XAS::Lib::App', | ||
| 10 | ; | ||
| 11 | |||
| 12 | # ---------------------------------------------------------------------- | ||
| 13 | # Public Methods | ||
| 14 | # ---------------------------------------------------------------------- | ||
| 15 | |||
| 16 | sub setup { | ||
| 17 | my $self = shift; | ||
| 18 | |||
| 19 | } | ||
| 20 | |||
| 21 | sub main { | ||
| 22 | my $self = shift; | ||
| 23 | |||
| 24 | $self->setup(); | ||
| 25 | |||
| 26 | my $server = XAS::Lib::SSH::Server->new(); | ||
| 27 | |||
| 28 | $server->run(); | ||
| 29 | |||
| 30 | } | ||
| 31 | |||
| 32 | sub options { | ||
| 33 | my $self = shift; | ||
| 34 | |||
| 35 | return {}; | ||
| 36 | |||
| 37 | } | ||
| 38 | |||
| 39 | # ---------------------------------------------------------------------- | ||
| 40 | # Private Methods | ||
| 41 | # ---------------------------------------------------------------------- | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ | ||
| 46 | |||
| 47 | =head1 NAME | ||
| 48 | |||
| 49 | XAS::Apps::Test::SSH::Server - A class for the XAS environment | ||
| 50 | |||
| 51 | =head1 SYNOPSIS | ||
| 52 | |||
| 53 | use XAS::Apps::Test::SSH::Server; | ||
| 54 | |||
| 55 | my $app = XAS::Apps::Test::SSH::Server->new( | ||
| 56 | -throw => 'ssh-server' | ||
| 57 | ); | ||
| 58 | |||
| 59 | $app->run(); | ||
| 60 | |||
| 61 | =head1 DESCRIPTION | ||
| 62 | |||
| 63 | This module provides a simple echo server for a SSH channel. | ||
| 64 | |||
| 65 | =head1 METHODS | ||
| 66 | |||
| 67 | =head2 setup | ||
| 68 | |||
| 69 | =head2 main | ||
| 70 | |||
| 71 | =head2 options | ||
| 72 | |||
| 73 | =head1 SEE ALSO | ||
| 74 | |||
| 75 | =head1 AUTHOR | ||
| 76 | |||
| 77 | Kevin L. Esteb, E<lt>kevin@kesteb.usE<gt> | ||
| 78 | |||
| 79 | =head1 COPYRIGHT AND LICENSE | ||
| 80 | |||
| 81 | Copyright (C) 2014 Kevin L. Esteb | ||
| 82 | |||
| 83 | This is free software; you can redistribute it and/or modify it under | ||
| 84 | the terms of the Artistic License 2.0. For details, see the full text | ||
| 85 | of the license at http://www.perlfoundation.org/artistic_license_2_0. | ||
| 86 | |||
| 87 | =cut |