NAME
Rex::Inline - write Rex in perl
DESCRIPTION
Rex::Inline is an API of Rex module write with Moose.
GETTING HELP
Web Site: http://rexify.org/
IRC: irc.freenode.net #rex
Bug Tracker: https://github.com/RexOps/Rex/issues
SYNOPSIS
use strict;
use warnings;
use Rex::Inline;
use Rex::Inline::Test;
my $rex = Rex::Inline->new(use_debug => 0);
my $task1 = Rex::Inline::Test->new(user => 'root', password => 'test', server => ['127.0.0.1']);
$rex->add_task($task1);
$rex->execute;
$rex->reports;
ATTRIBUTES
- use_debug
-
set/get debug option (Bool)
Print or not debug level log
see rex -d option
default is 0 (disabled)
- use_cache
-
set/get use_cache option (Bool)
Use or not rex -c option
default is 1 (enable)
- use_report
-
set/get use_report option (Bool)
show rex report result
default is 1 (enable)
- log_dir
-
set/get log dir (String)
default is
"./rexlogs/"
- parallelism
-
set/get parallelism nums (Int)
see rex -t option
default is 5
- log_paths
-
get log paths (ArrayRef)
format is
[{task_id = log_path}, ...]
readonly
- reports
-
get rex process reports (ArrayRef)
format is
[{report = $report_ref, task_id = $task_id, date = $date, hostname = $hostname}, ...]
readonly
METHODS
- add_task
-
add Rex::Inline::Base Object to TaskList
- execute
-
Execute all loaded Task in parallel