protected function getSshOptions()
    {
        $options = [];

        $options['SendEnv'] = 'TERM';

        if ($this->input->hasOption('identity-file') && $this->input->getOption('identity-file')) {
            $file = $this->input->getOption('identity-file');
            if (!file_exists($file)) {
                throw new \InvalidArgumentException('Identity file not found: ' . $file);
            }
            $options['IdentitiesOnly'] = 'yes';
            $options['IdentityFile'] = $file;
        }

        if ($this->output->isDebug()) {
            $options['LogLevel'] = 'DEBUG';
        } elseif ($this->output->isVeryVerbose()) {
            $options['LogLevel'] = 'VERBOSE';
        } elseif ($this->output->isQuiet()) {
            $options['LogLevel'] = 'QUIET';
        }

        return $options;
    }
protected function getSshOptions()
    {
        $options = [];

        $options['SendEnv'] = 'TERM';

        if ($this->input->hasOption('identity-file') && $this->input->getOption('identity-file')) {
            $file = $this->input->getOption('identity-file');
            if (!file_exists($file)) {
                throw new \InvalidArgumentException('Identity file not found: ' . $file);
            }
            $options['IdentitiesOnly'] = 'yes';
            $options['IdentityFile'] = $file;
        }

        if ($this->output->isDebug()) {
            $options['LogLevel'] = 'DEBUG';
        } elseif ($this->output->isVeryVerbose()) {
            $options['LogLevel'] = 'VERBOSE';
        } elseif ($this->output->isQuiet()) {
            $options['LogLevel'] = 'QUIET';
        }

        return $options;
    }
protected function getSshOptions ( ) { $ options = [ ] ; $ options [ 'SendEnv' ] = 'TERM' ; if ( $ this -> input -> hasOption ( 'identity-file' ) && $ this -> input -> getOption ( 'identity-file' ) ) { $ file = $ this -> input -> getOption ( 'identity-file' ) ; if ( ! file_exists ( $ file ) ) { throw new \ InvalidArgumentException ( 'Identity file not found: ' . $ file ) ; } $ options [ 'IdentitiesOnly' ] = 'yes' ; $ options [ 'IdentityFile' ] = $ file ; } if ( $ this -> output -> isDebug ( ) ) { $ options [ 'LogLevel' ] = 'DEBUG' ; } elseif ( $ this -> output -> isVeryVerbose ( ) ) { $ options [ 'LogLevel' ] = 'VERBOSE' ; } elseif ( $ this -> output -> isQuiet ( ) ) { $ options [ 'LogLevel' ] = 'QUIET' ; } return $ options ; }
Returns an array of SSH options, based on the input options.

@return string[] An array of SSH options.
Returns an array of SSH options based on the input options .