protected function getRemoteSettings($host, $user, $keyFile, $app, $timestamp = null)
    {
        $this->readProperties();
        $defaults = [
            'user' => $user,
            'private-key' => $keyFile,
            'app' => $app,
            'createbackup' => true,
            'time' => is_null($timestamp) ? $this->time : $timestamp,
        ];

        // Set up destination config.
        $replacements = array(
            '[user]' => $user,
            '[private-key]' => $keyFile,
            '[app]' => $app,
            '[time]' => is_null($timestamp) ? $this->time : $timestamp,
        );
        if (is_string($host)) {
            $replacements['[server]'] = $host;
            $defaults['server'] = $host;
        }
        if (is_array($host)) {
            foreach ($host as $key => $server) {
                $replacements['[server-' . $key . ']'] = $server;
                $defaults['server-' . $key] = $server;
            }
        }
        return $this->tokenReplace($this->getConfig()->get('remote'), $replacements) + $defaults;
    }
protected function getRemoteSettings($host, $user, $keyFile, $app, $timestamp = null)
    {
        $this->readProperties();
        $defaults = [
            'user' => $user,
            'private-key' => $keyFile,
            'app' => $app,
            'createbackup' => true,
            'time' => is_null($timestamp) ? $this->time : $timestamp,
        ];

        // Set up destination config.
        $replacements = array(
            '[user]' => $user,
            '[private-key]' => $keyFile,
            '[app]' => $app,
            '[time]' => is_null($timestamp) ? $this->time : $timestamp,
        );
        if (is_string($host)) {
            $replacements['[server]'] = $host;
            $defaults['server'] = $host;
        }
        if (is_array($host)) {
            foreach ($host as $key => $server) {
                $replacements['[server-' . $key . ']'] = $server;
                $defaults['server-' . $key] = $server;
            }
        }
        return $this->tokenReplace($this->getConfig()->get('remote'), $replacements) + $defaults;
    }
protected function getRemoteSettings ( $ host , $ user , $ keyFile , $ app , $ timestamp = null ) { $ this -> readProperties ( ) ; $ defaults = [ 'user' => $ user , 'private-key' => $ keyFile , 'app' => $ app , 'createbackup' => true , 'time' => is_null ( $ timestamp ) ? $ this -> time : $ timestamp , ] ; // Set up destination config. $ replacements = array ( '[user]' => $ user , '[private-key]' => $ keyFile , '[app]' => $ app , '[time]' => is_null ( $ timestamp ) ? $ this -> time : $ timestamp , ) ; if ( is_string ( $ host ) ) { $ replacements [ '[server]' ] = $ host ; $ defaults [ 'server' ] = $ host ; } if ( is_array ( $ host ) ) { foreach ( $ host as $ key => $ server ) { $ replacements [ '[server-' . $ key . ']' ] = $ server ; $ defaults [ 'server-' . $ key ] = $ server ; } } return $ this -> tokenReplace ( $ this -> getConfig ( ) -> get ( 'remote' ) , $ replacements ) + $ defaults ; }
Get the settings from the 'remote' config key, with the tokens replaced.

@param string $host
The IP address of the server to get the settings for.
@param string $user
The SSH user used to connect to the server.
@param string $keyFile
The path to the private key file used to connect to the server.
@param string $app
The name of the app these settings apply to.
@param string|null $timestamp
The timestamp to use. Defaults to the request time.

@return array
The settings for this server and app.
Get the settings from the remote config key with the tokens replaced .