Verby::Action::Copy - Action to copy a directory tree to from one location to another using rsync.
use Verby::Step::Closure qw/step/; step "Verby::Action::Copy" => sub { my ($self, $c) = @_; $c->source("/path/to/copy/from"); $c->dest("/path/to/copy/to"); }
This module uses File::Rsync to copy a directory tree to from one location to another.
Runs rsync from $c->source to $c->dest unconditionally. Since rsync has it's own verification logic this is still fairly fast.
$c->source
$c->dest
Returns an array reference of the command line to use. Calls getcmd on rsync_object.
getcmd
rsync_object
The following parameters are taken from the context object:
The rsync source/destination paths to use.
The actions instance can contain additional configuration options.
When undef, this is handled by File::Rsync. Otherwise you can provide an alternate path for rsync.
A hash reference with additional optiosn to override the defaults.
This is a lazy field, that creates a File::Rsync object based on the other fields. You may override this with any object that can handle File::Rsync's getcmd method.
None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.
We use Devel::Cover to test the code coverage of the tests, please refer to COVERAGE section of the Verby module for more information.
File::Rsync, Verby::Action::Run
Yuval Kogman, <nothingmuch@woobling.org>
Copyright 2005, 2006 by Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Verby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Verby
CPAN shell
perl -MCPAN -e shell install Verby
For more information on module installation, please visit the detailed CPAN module installation guide.