App-nrun
view release on metacpan or search on metacpan
lib/NRun/Workers/WorkerGeneric.pm view on Meta::CPAN
# 'generic_rcopy' - commandline for the rcopy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'generic_copy' - commandline for the copy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'generic_exec' - commandline for the exec command (COMMAND, ARGUMENTS, HOSTNAME will be replaced)
# 'generic_delete' - commandline for the delete command (FILE, HOSTNAME will be replaced)
# }
sub init {
my $_self = shift;
my $_cfg = shift;
$_self->SUPER::init($_cfg);
$_self->{generic_rcopy} = $_cfg->{generic_rcopy};
$_self->{generic_copy} = $_cfg->{generic_copy};
$_self->{generic_exec} = $_cfg->{generic_exec};
$_self->{generic_delete} = $_cfg->{generic_delete};
}
###
# copy a file to $_self->{hostname}.
#
lib/NRun/Workers/WorkerLocal.pm view on Meta::CPAN
# $_cfg - parameter hash where
# {
# 'hostname' - hostname this worker should act on
# 'local_exec' - commandline for the exec command (COMMAND, ARGUMENTS, HOSTNAME will be replaced)
# }
sub init {
my $_self = shift;
my $_cfg = shift;
$_self->SUPER::init($_cfg);
$_self->{local_exec} = $_cfg->{local_exec};
}
###
# copy a file from $_self->{hostname}.
#
# $_source - source file to be copied
# $_target - destination $_source should be copied to
# <- the return code
lib/NRun/Workers/WorkerNsh.pm view on Meta::CPAN
# 'nsh_rcopy' - commandline for the rcopy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'nsh_copy' - commandline for the copy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'nsh_exec' - commandline for the exec command (COMMAND, ARGUMENTS, HOSTNAME will be replaced)
# 'nsh_delete' - commandline for the delete command (FILE, HOSTNAME will be replaced)
# }
sub init {
my $_self = shift;
my $_cfg = shift;
$_self->SUPER::init($_cfg);
$_self->{nsh_rcopy} = $_cfg->{nsh_rcopy};
$_self->{nsh_copy} = $_cfg->{nsh_copy};
$_self->{nsh_exec} = $_cfg->{nsh_exec};
$_self->{nsh_delete} = $_cfg->{nsh_delete};
}
###
# copy a file from $_self->{hostname}.
#
lib/NRun/Workers/WorkerRsh.pm view on Meta::CPAN
# 'rsh_rcopy' - commandline for the rcopy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'rsh_copy' - commandline for the copy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'rsh_exec' - commandline for the exec command (COMMAND, ARGUMENTS, HOSTNAME will be replaced)
# 'rsh_delete' - commandline for the delete command (FILE, HOSTNAME will be replaced)
# }
sub init {
my $_self = shift;
my $_cfg = shift;
$_self->SUPER::init($_cfg);
$_self->{rsh_rcopy} = $_cfg->{rsh_rcopy};
$_self->{rsh_copy} = $_cfg->{rsh_copy};
$_self->{rsh_exec} = $_cfg->{rsh_exec};
$_self->{rsh_delete} = $_cfg->{rsh_delete};
}
###
# copy a file from $_self->{hostname}.
#
lib/NRun/Workers/WorkerSsh.pm view on Meta::CPAN
# 'ssh_rcopy' - commandline for the rcopy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'ssh_copy' - commandline for the copy command (SOURCE, TARGET, HOSTNAME will be replaced)
# 'ssh_exec' - commandline for the exec command (COMMAND, ARGUMENTS, HOSTNAME will be replaced)
# 'ssh_delete' - commandline for the delete command (FILE, HOSTNAME will be replaced)
# }
sub init {
my $_self = shift;
my $_cfg = shift;
$_self->SUPER::init($_cfg);
$_self->{ssh_rcopy} = $_cfg->{ssh_rcopy};
$_self->{ssh_copy} = $_cfg->{ssh_copy};
$_self->{ssh_exec} = $_cfg->{ssh_exec};
$_self->{ssh_delete} = $_cfg->{ssh_delete};
}
###
# copy a file to $_self->{hostname}.
#
( run in 0.256 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )