| 1 | package App::BCSSH::Command::scp; | ||||||||||
| 2 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use App::BCSSH::Options; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | with Options; | |||||||||
| 5 | 1 | with 'App::BCSSH::Client'; | |||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use File::Spec; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | sub run { | ||||||||
|
Subroutine
run: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 10 | 0 | my $self = shift; | |||||||||
| 11 | 0 | my @files = @{ $self->args }; | |||||||||
| 12 | 0 | ▶ | @files or die "At least one file must be specified!\n"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 0 | for my $file (@files) { | |||||||||
| 14 | 0 | $file = File::Spec->rel2abs($file); | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | $self->command({ files => \@files }); | |||||||||
| 17 | 0 | my $sock = $self->agent_socket; | |||||||||
| 18 | 0 | $| = 1; | |||||||||
| 19 | 0 | ▶ | while ($sock->sysread(my $buf, 8192)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | print $buf; | |||||||||
| 21 | } | ||||||||||
| 22 | 0 | return 1; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | __END__ | ||||||||||