DataSift\Storyplayer\CommandLib\SshClient::__construct PHP Method

__construct() public method

public __construct ( StoryTeller $st, $sshOptions = [], $scpOptions = [] )
$st DataSift\Storyplayer\PlayerLib\StoryTeller
    public function __construct(StoryTeller $st, $sshOptions = array(), $scpOptions = array())
    {
        Contract::RequiresValue($sshOptions, is_array($sshOptions));
        Contract::RequiresValue($scpOptions, is_array($scpOptions));
        // remember for future use
        $this->st = $st;
        // set the default SSH options
        $sshOptions = array_merge($this->getDefaultSshOptions(), $sshOptions);
        // add in the options
        foreach ($sshOptions as $option) {
            $this->addSshOption($option);
        }
        // set the default SCP options
        $scpOptions = array_merge($this->getDefaultScpOptions(), $scpOptions);
        foreach ($scpOptions as $option) {
            $this->addScpOption($option);
        }
    }