Logging changed and made more coherent
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Task / Connect.pm
1 # $Id: Connect.pm,v 1.3 2006-10-12 16:54:13 mike Exp $
2
3 # See ZOOM/IRSpy/Task/Search.pm for documentation
4
5 package ZOOM::IRSpy::Task::Connect;
6
7 use 5.008;
8 use strict;
9 use warnings;
10
11 use ZOOM::IRSpy::Task;
12 our @ISA = qw(ZOOM::IRSpy::Task);
13
14 sub new {
15     my $class = shift();
16
17     return $class->SUPER::new(@_);
18 }
19
20 sub run {
21     my $this = shift();
22
23     my $conn = $this->conn();
24     $conn->log("irspy_task", "connecting");
25     $conn->connect($conn->option("host"));
26 }
27
28 sub render {
29     my $this = shift();
30     return ref($this) . " " . $this->conn()->option("host");
31 }
32
33 use overload '""' => \&render;
34
35 1;