Archer::Plugin::SVN::Update - svn update


Archer documentation Contained in the Archer distribution.

Index


Code Index:

NAME

Top

Archer::Plugin::SVN::Update - svn update

SYNOPSIS

Top

  - module: SVN::Update
    config:
      path: "[% work_dir %]/[% project %]"

DESCRIPTION

Top

Execute svn update.

CONFIG

Top

path

Svn working directory path.Default is [% work_dir %]/[% project %].

AUTHORS

Top

Gosuke Miyashita

SEE ALSO

Top

SVN::Agent


Archer documentation Contained in the Archer distribution.

package Archer::Plugin::SVN::Update;

use strict;
use warnings;
use base qw( Archer::Plugin::SVN );

use SVN::Agent;

sub run {
    my ($self, $context, $args) = @_;

    my $path = $self->{config}->{path}
        || File::Spec->catfile($context->{config}->{global}->{work_dir}, $context->{project});
    $path = $self->templatize($path);

    my $svn = SVN::Agent->load({ path => $path });
    $svn->update;
}

1;

__END__