* MM MM ,M' Yb MM `Wb MM 6W' `Wb VA ,V ,M' Yb MM' "' * MM ,MP 8M"""""" MM M8 MM 8M M8 VA ,V 8M"""""" MM * MM ,dP' YM. , MM ,AP MM YA. ,A9 VVV YM. , MM * .JMMmmmdP' `Mbmmd' MMbmmd' .JMML. `Ybmd9' ,V `Mbmmd' .JMML. * MM ,V * .JMML. OOb" */ /** * Root directory * * @var string */ define('ROOT', __DIR__ . DIRECTORY_SEPARATOR); require_once ROOT . 'Deployer.php'; mb_internal_encoding('UTF-8'); Deployer::registerAutoload(); // Show version info if (isset($argv[1]) && $argv[1] == '--version') { printHeader(); \Deployer\CLI::writeln(array(array('Version: ' . Deployer::VERSION . ', '))); return; } // Run deployer if (sizeof($argv) == 3 && $argv[1] == '-f') { Deployer::factory($argv[2])->execute()->report(); return; } // Show help information printHeader(); \Deployer\CLI::writeln(); \Deployer\CLI::writeln('Usage:');