Deployer\Server\Configuration::setPemFile PHP Method

setPemFile() public method

To auth with pem file use pemFile() method instead of this.
public setPemFile ( string $pemFile ) : Configuration
$pemFile string
return Configuration
    public function setPemFile($pemFile)
    {
        $this->pemFile = $this->parseHome($pemFile);
        return $this;
    }

Usage Example

Example #1
0
 /**
  * Authenticate with pem file
  *
  * @param string $pemFile
  *
  * @return Builder
  */
 public function pemFile($pemFile)
 {
     $this->config->setAuthenticationMethod(Configuration::AUTH_BY_PEM_FILE);
     $this->config->setPemFile($pemFile);
     return $this;
 }