NAME

Rex::Inline::Base - write Rex in perl, Base module

DESCRIPTION

Rex::Inline::Base is an superclass of Rex::Inline task object

GETTING HELP

SYNOPSIS

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;

ATTRIBUTES

id

set/get task id (String)

default is random number

server

server address used when ssh connection

This param is required.

user

username used when ssh connection

password

password used when ssh connection

private_key

private_key filename used when ssh connection

public_key

public_key filename used when ssh connection

sudo [TRUE|FALSE]

use sudo when execute commands

default is undef

input

input param for tasklist module in any format you need