本文整理汇总了PHP中Host::install方法的典型用法代码示例。如果您正苦于以下问题:PHP Host::install方法的具体用法?PHP Host::install怎么用?PHP Host::install使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host::install方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Host
$host = new Host($user);
$app = new App("upper_case");
$app_version = new App_Version($app);
$project->add_user($user);
$project->add_app($app);
$project->add_app_version($app_version);
$project->start_feeder = true;
$project->start_make_work = true;
$project->start_validate = true;
$project->start_file_delete = true;
$project->start_assimilator = true;
$project->install();
// must install projects before adding to hosts
$host->log_flags = "log_flags.xml";
$host->add_user($user, $project);
$host->install();
echo "adding work\n";
$work = new Work($app);
$work->wu_template = "uc_wu";
$work->result_template = "uc_result";
$work->redundancy = 3;
array_push($work->input_files, "input");
$work->install($project);
$project->start_feeder();
$project->start_make_work($work);
$project->start_validate($app, 3);
$project->start_file_delete();
$project->start_assimilator($app);
$project->start_stripchart();
//$project->start_servers();
$host->run();