/**
* @param string $name Name of the cluster
* @param array $nodes An array of nodes' host/ip
* @param int $port Ssh port of the nodes
*
* Example:
* You should pass a cluster name and nodes array.
* Nodes array should be as following:
* [ '192.168.1.1', 'example.com', '192.168.1.5' ]
* @return BuilderInterface
*/
function cluster($name, $nodes, $port = 22)
{
$deployer = Deployer::get();
$cluster = ClusterFactory::create($deployer, $name, $nodes, $port);
return $cluster->getBuilder();
}