protected function writeSshKey($cloneTo)
    {
        $keyPath = dirname($cloneTo . '/temp');
        $keyFile = $keyPath . '.key';

        // Write the contents of this project's git key to the file:
        file_put_contents($keyFile, $this->getProject()->getSshPrivateKey());
        chmod($keyFile, 0600);

        // Return the filename:
        return $keyFile;
    }
protected function writeSshKey($cloneTo)
    {
        $keyPath = dirname($cloneTo . '/temp');
        $keyFile = $keyPath . '.key';

        // Write the contents of this project's git key to the file:
        file_put_contents($keyFile, $this->getProject()->getSshPrivateKey());
        chmod($keyFile, 0600);

        // Return the filename:
        return $keyFile;
    }
protected function writeSshKey ( $ cloneTo ) { $ keyPath = dirname ( $ cloneTo . '/temp' ) ; $ keyFile = $ keyPath . '.key' ; // Write the contents of this project's git key to the file: file_put_contents ( $ keyFile , $ this -> getProject ( ) -> getSshPrivateKey ( ) ) ; chmod ( $ keyFile , 0600 ) ; // Return the filename: return $ keyFile ; }
Create an SSH key file on disk for this build.
@param $cloneTo
@return string
Create an SSH key file on disk for this build .