Rex::Inline::Base - write Rex in perl, Base module
Rex::Inline::Base is an superclass of Rex::Inline task object
Web Site: http://rexify.org/
IRC: irc.freenode.net #rex
Bug Tracker: https://github.com/RexOps/Rex/issues
package Test; use Moose; use Rex -feature => ['1.0']; extends 'Rex::Inline::Base'; sub func { my $self = shift; return sub { my $output = run "uptime"; say $output; say $self->input; } } __PACKAGE__->meta->make_immutable;
set/get task id (String)
default is random number
server address used when ssh connection
This param is required.
username used when ssh connection
password used when ssh connection
private_key filename used when ssh connection
public_key filename used when ssh connection
use sudo when execute commands
default is undef
undef
input param for tasklist module in any format you need
To install Rex::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex::Inline
CPAN shell
perl -MCPAN -e shell install Rex::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.