Ejemplo n.º 1
0
 *  --include-code
 *
 * to dry-run the script add
 *  --no-create
 *
 * to define user (defaults to apache) or group (defaults to kaltura) for files ownership add
 *  --user={username}
 *  --group={groupname}
 */
ini_set("memory_limit", "512M");
error_reporting(E_ALL);
$code = array();
$uiConfIds = array();
$tokenValues = array();
//$argv = array( 1=> "--ini=c:/web/flash/kmc/v4.0.4/config.ini", 2 => "--no-create"); //used to teswt inside the zend studio
$arguments = uiConfDeployment::setArguments($argv);
$includeCode = $arguments['include-code'];
$skipAddUiconf = $arguments['no-create'];
//error_reporting(0);
$confObj = uiConfDeployment::init($arguments['ini']);
// get and read the config file
uiConfDeployment::checkArguments($arguments);
uiConfDeployment::$baseTag = $confObj->general->component->name;
// gets the application name for the default tags
uiConfDeployment::$defaultTags = "autodeploy, " . uiConfDeployment::$baseTag . "_" . $confObj->general->component->version;
// create the uiConf default tags (for ui confs of the application)
uiConfDeployment::$partnerId = $arguments['partner'];
if ($includeCode) {
    $code = uiConfDeploymentCodeGenerator::generateCode();
}
uiConfDeployment::deprecateOldUiConfs(uiConfDeployment::$defaultTags);