test:
atoum:
args: "command line arguments go here"
config: "path to config file"
directory: "directory to run tests"
executable: "path to atoum executable"
Rex 是遠端執行的縮寫。 該系統由工程師 Ferenc Erki 開發,用於實現資料中心流程的自動化。 Rex 基於 Perl 腳本,但無需了解這種語言即可與該工具互動 - 大多數操作(例如複製檔案)都在函數庫中描述,並且腳本通常適合十行。 以下是登入多個伺服器並運行正常運行時間的範例:
use Rex -feature => ['1.3'];
user "my-user";
password "my-password";
group myservers => "mywebserver", "mymailserver", "myfileserver";
desc "Get the uptime of all servers";
task "uptime", group => "myservers", sub {
my $output = run "uptime";
say $output;
};