| 1 | package Clustericious::Admin; | ||||||||||||||||||
| 2 | |||||||||||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 5 | 3 | ▶ | use App::clad; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 6 | 3 | ▶ | use Carp (); | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 7 | |||||||||||||||||||
| 8 | # ABSTRACT: Parallel SSH client | ||||||||||||||||||
| 9 | 3 | our $VERSION = '1.11'; # VERSION | |||||||||||||||||
| 10 | |||||||||||||||||||
| 11 | |||||||||||||||||||
| 12 | |||||||||||||||||||
| 13 | sub banners | ||||||||||||||||||
| 14 | 1 | ▶ | { | ||||||||||||||||
|
Subroutine
banners: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||
| 15 | 1 | (undef) = @_; | |||||||||||||||||
| 16 | 1 | Carp::carp "Class method call of Clustericious::Admin->banners is deprecated"; | |||||||||||||||||
| 17 | 1 | (); | |||||||||||||||||
| 18 | } | ||||||||||||||||||
| 19 | |||||||||||||||||||
| 20 | |||||||||||||||||||
| 21 | sub clusters | ||||||||||||||||||
| 22 | 1 | ▶ | { | ||||||||||||||||
|
Subroutine
clusters: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||
| 23 | 1 | my $self = shift; | |||||||||||||||||
| 24 | |||||||||||||||||||
| 25 | ref $self | ||||||||||||||||||
| 26 | ? $self->SUPER::new($_) | ||||||||||||||||||
| 27 | 1 | ▶ | : do { | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 28 | 1 | Carp::carp "Class method call of Clustericious::Admin->clusters is deprecated"; | |||||||||||||||||
| 29 | 1 | sort keys %{ App::clad->new('--server')->cluster_list }; | |||||||||||||||||
| 30 | }; | ||||||||||||||||||
| 31 | } | ||||||||||||||||||
| 32 | |||||||||||||||||||
| 33 | |||||||||||||||||||
| 34 | sub aliases | ||||||||||||||||||
| 35 | 1 | ▶ | { | ||||||||||||||||
|
Subroutine
aliases: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||
| 36 | 1 | (undef) = @_; | |||||||||||||||||
| 37 | 1 | Carp::carp "Class method call of Clustericious::Admin->aliases is deprecated"; | |||||||||||||||||
| 38 | 1 | sort keys %{ App::clad->new('--server')->alias }; | |||||||||||||||||
| 39 | } | ||||||||||||||||||
| 40 | |||||||||||||||||||
| 41 | |||||||||||||||||||
| 42 | sub run | ||||||||||||||||||
| 43 | 5 | ▶ | { | ||||||||||||||||
|
Subroutine
run: called CC=5 SCAR=16.1
Pod
documented
| |||||||||||||||||||
| 44 | 5 | my $self = shift; | |||||||||||||||||
| 45 | |||||||||||||||||||
| 46 | ref $self | ||||||||||||||||||
| 47 | ? $self->SUPER::new(@_) | ||||||||||||||||||
| 48 | 5 | ▶ | : do { | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 49 | 5 | Carp::carp "Class method call of Clustericious::Admin->run is deprecated"; | |||||||||||||||||
| 50 | 5 | my($opts, $cluster, @cmd) = @_; | |||||||||||||||||
| 51 | App::clad->new( | ||||||||||||||||||
| 52 | ($opts->{n} ? ('-n') : ()), | ||||||||||||||||||
| 53 | ($opts->{l} ? ('-l' => $opts->{l}) : ()), | ||||||||||||||||||
| 54 | 5 | ▶ | ($opts->{a} ? ('-a') : ()), | ||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||
| 55 | $cluster, @cmd, | ||||||||||||||||||
| 56 | )->run; | ||||||||||||||||||
| 57 | }; | ||||||||||||||||||
| 58 | } | ||||||||||||||||||
| 59 | |||||||||||||||||||
| 60 | 3 | 1; | |||||||||||||||||
| 61 | |||||||||||||||||||
| 62 | __END__ | ||||||||||||||||||