Banago\PHPloy\PHPloy::getPasswordFromIniFile PHP Method

getPasswordFromIniFile() public method

Try to fetch password from .phploy file if not found, an empty string will be returned.
public getPasswordFromIniFile ( string $servername ) : string
$servername string Server to fetch password for
return string
    public function getPasswordFromIniFile($servername)
    {
        $values = $this->parseIniFile($this->getPasswordFile());
        if (isset($values[$servername]['pass']) === true) {
            return $values[$servername]['pass'];
        }
        if (isset($values[$servername]['password']) === true) {
            throw new \Exception('Please rename password to pass in ' . $this->getPasswordFile());
        }
        return '';
    }