mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Ensure code is run through 'perltidy -pbp -nst -nse'
This commit is contained in:
parent
d9446aa28a
commit
f8ed9da353
13 changed files with 184 additions and 156 deletions
|
@ -22,7 +22,10 @@ sub new {
|
|||
sub script {
|
||||
my ( $self, $config ) = @_;
|
||||
|
||||
if(! defined $config || ! ref $config || ref $config ne "App::ClusterSSH::Config") {
|
||||
if ( !defined $config
|
||||
|| !ref $config
|
||||
|| ref $config ne "App::ClusterSSH::Config" )
|
||||
{
|
||||
croak(
|
||||
App::ClusterSSH::Exception::Helper->throw(
|
||||
error => 'No configuration provided or in wrong format',
|
||||
|
@ -30,9 +33,10 @@ sub script {
|
|||
);
|
||||
}
|
||||
|
||||
foreach my $arg ( "comms", $config->{comms}, $config->{comms} . '_args', 'command', 'auto_close'
|
||||
) {
|
||||
if( !defined $config->{ $arg } ) {
|
||||
foreach my $arg ( "comms", $config->{comms}, $config->{comms} . '_args',
|
||||
'command', 'auto_close' )
|
||||
{
|
||||
if ( !defined $config->{$arg} ) {
|
||||
croak(
|
||||
App::ClusterSSH::Exception::Helper->throw(
|
||||
error => "Config '$arg' not provided",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue