10. con?g/deploy.pl
use Cinnamon::DSL;
set user => 'johndoe'; # required
set deploy_to => '/path/to/dir';
role production => # declare server
['server01.host', 'server02.host'];
task update => sub {
my ($host, @args) = @_;
my $deploy_to = get('deploy_to');
remote {
run "cd $deploy_to && git pull";
} $host;
};