-
Notifications
You must be signed in to change notification settings - Fork 11
Reference configurations
kohkimakimoto edited this page Mar 11, 2013
·
18 revisions
This page provides infomations of several configuration methods on Altax.
You can use these methods on your altax configuration file (default file is altax.php
on your current working directory).
This is a simple configuration file.
<?php
host('192.168.0.1', 'web');
host('192.168.0.2', 'web');
desc('This is a sample task.');
task('sample',array('roles' => 'web'), function($host, $args){
run('echo Hellow World!');
});
-
role
Associates a role with multiple servers. (more...) -
host
Associates a host with multiple roles. (more...) -
task
Defines a new task. (more...) -
desc
Associates a description with the next task that gets defined. (more...) -
run
Execute commands on remote managed server. (more...) -
run_task
Run Other task in the task method. (more...)