Canella
view release on metacpan or search on metacpan
lib/Canella/DSL.pm view on Meta::CPAN
sub scp_put(@) {
my $remote = current_remote;
{
local $Log::Minimal::AUTODUMP = 1;
infof "[%s :: executing] scp_put %s", $remote->host, \@_;
}
$remote->connection->scp_put(@_);
}
sub on_finish(&;$) {
my ($code, $name) = @_;
# on_finish always fires
my $guard = Canella::BlockGuard->new(
name => $name,
code => $code,
should_fire_cb => sub { 1 }
);
current_task->add_guard($guard->name, $guard);
}
( run in 1.098 second using v1.01-cache-2.11-cpan-49f99fa48dc )