/** * 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); }
/** * 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')); }