Test::AutoBuild::Publisher::Copy - Copies build logs to a directory


Test-AutoBuild documentation Contained in the Test-AutoBuild distribution.

Index


Code Index:

NAME

Top

Test::AutoBuild::Publisher::Copy - Copies build logs to a directory

SYNOPSIS

Top

  use Test::AutoBuild::Publisher::Copy




DESCRIPTION

Top

This module performs a straight copy of the artifacts from the source to destination directory.

METHODS

Top

my $mod = Test::AutoBuild::Publisher::Copy->new();

AUTHORS

Top

Daniel Berrange <dan@berrange.com>

COPYRIGHT

Top

SEE ALSO

Top

perl(1), Test::AutoBuild::Publisher


Test-AutoBuild documentation Contained in the Test-AutoBuild distribution.
# -*- perl -*-
#
# Test::AutoBuild::Publisher::Copy by Daniel Berrange <dan@berrange.com>
#
# Copyright (C) 2002-2004 Daniel Berrange <dan@berrange.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id: Copy.pm,v 1.4 2007/12/08 21:03:02 danpb Exp $

package Test::AutoBuild::Publisher::Copy;

use base qw(Test::AutoBuild::Publisher);
use strict;
use warnings;
use Carp qw(confess);
use File::Path;

sub new {
    my $proto = shift;
    my $class = ref($proto) || $proto;
    my $self = $class->SUPER::new(@_);

    bless $self, $class;

    return $self;
}


sub publish {
    my $self = shift;
    my $src = shift;
    my $dst = shift;

    Test::AutoBuild::Lib::_copy($src, $dst);
}


1 # So that the require or use succeeds.

__END__