PHP Trait Laravel\Envoy\ConfigurationParser

Show file Open project: laravel/envoy

Protected Methods

Method Description
getConfiguredServer ( string $host ) : string | null Get the configured server from the SSH config.
getHomeDirectory ( string $user ) : string | null Get the home directory for the user based on OS.
getSshConfig ( string $user ) : SSHConfigFile | null Get the SSH configuration file instance.
getSystemUser ( ) : string Get the system user.
isValidIp ( string $value ) : boolean Determine if the given value is a valid IP.

Method Details

getConfiguredServer() protected method

Get the configured server from the SSH config.
protected getConfiguredServer ( string $host ) : string | null
$host string
return string | null

getHomeDirectory() protected method

Get the home directory for the user based on OS.
protected getHomeDirectory ( string $user ) : string | null
$user string
return string | null

getSshConfig() protected method

Get the SSH configuration file instance.
protected getSshConfig ( string $user ) : SSHConfigFile | null
$user string
return SSHConfigFile | null

getSystemUser() protected method

Get the system user.
protected getSystemUser ( ) : string
return string

isValidIp() protected method

Determine if the given value is a valid IP.
protected isValidIp ( string $value ) : boolean
$value string
return boolean