| Archer documentation | Contained in the Archer distribution. |
Archer::Plugin::SVN::Update - svn update
- module: SVN::Update
config:
path: "[% work_dir %]/[% project %]"
Execute svn update.
Svn working directory path.Default is [% work_dir %]/[% project %].
Gosuke Miyashita
| 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__