| 1 | package App::BCSSH::Handler::vi; | ||||||||||
| 2 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | with 'App::BCSSH::Handler'; | |||||||||
| 5 | |||||||||||
| 6 | 0 | ▶ | has gvim => (is => 'ro', default => sub { 'gvim' }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub handle { | ||||||||
|
Subroutine
handle: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 9 | 0 | my ($self, $send, $args) = @_; | |||||||||
| 10 | 0 | my $files = $args->{files}; | |||||||||
| 11 | 0 | my $wait = $args->{wait}; | |||||||||
| 12 | 0 | for my $file (@$files) { | |||||||||
| 13 | 0 | $file = 'scp://'.$self->host.'/'.$file; | |||||||||
| 14 | } | ||||||||||
| 15 | 0 | ▶ | system $self->gvim, ($wait ? '-f' : ()), '--', @$files; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | $send->(); | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||