示例#1
0
文件: Task.php 项目: netresearch/kite
 /**
  * Task constructor.
  *
  * @param Variables $parent Parent object (Task/Job/Workflow)
  */
 public function __construct(Variables $parent)
 {
     $this->job = $parent instanceof Job ? $parent : $parent->get('job');
     $this->console = $this->job->console;
     parent::__construct($parent);
 }
示例#2
0
文件: Node.php 项目: netresearch/kite
 /**
  * Node constructor.
  *
  * @param Variables $parent Parent object (Task/Job/Workflow)
  */
 public function __construct(Variables $parent)
 {
     parent::__construct($parent, array('user' => '', 'pass' => '', 'port' => '', 'url' => '{(this.user ? this.user ~ "@" : "") ~ this.host}', 'sshOptions' => ' -A{this.port ? " -p " ~ this.port : ""}{this.pass ? " -o PubkeyAuthentication=no" : ""}', 'scpOptions' => '{this.port ? " -P " ~ this.port : ""}{this.pass ? " -o PubkeyAuthentication=no" : ""}', 'php' => 'php', 'webRoot' => '{this.deployPath}/current'));
 }