PHP Класс Deployment\SshServer

Наследование: implements deployment\Server
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( $url )
connect ( ) : void Connects to FTP server.
createDir ( $dir ) : void Creates directories on FTP server.
execute ( $command ) : string Executes a command on a remote server.
getDir ( ) : string Returns current directory.
purge ( $dir, callable $progress = NULL ) : void Recursive deletes content of directory or file.
readFile ( $remote, $local ) : void Reads remote file from FTP server.
removeDir ( $dir ) : void Removes directory from FTP server if exists.
removeFile ( $file ) : void Removes file from FTP server if exists.
renameFile ( $old, $new ) : void Renames and rewrites file on FTP server.
writeFile ( $local, $remote, callable $progress = NULL ) : void Uploads file to FTP server.

Приватные методы

Метод Описание
protect ( callable $func, $args = [] )

Описание методов

__construct() публичный Метод

public __construct ( $url )

connect() публичный Метод

Connects to FTP server.
public connect ( ) : void
Результат void

createDir() публичный Метод

Creates directories on FTP server.
public createDir ( $dir ) : void
Результат void

execute() публичный Метод

Executes a command on a remote server.
public execute ( $command ) : string
Результат string

getDir() публичный Метод

Returns current directory.
public getDir ( ) : string
Результат string

purge() публичный Метод

Recursive deletes content of directory or file.
public purge ( $dir, callable $progress = NULL ) : void
$progress callable
Результат void

readFile() публичный Метод

Reads remote file from FTP server.
public readFile ( $remote, $local ) : void
Результат void

removeDir() публичный Метод

Removes directory from FTP server if exists.
public removeDir ( $dir ) : void
Результат void

removeFile() публичный Метод

Removes file from FTP server if exists.
public removeFile ( $file ) : void
Результат void

renameFile() публичный Метод

Renames and rewrites file on FTP server.
public renameFile ( $old, $new ) : void
Результат void

writeFile() публичный Метод

Uploads file to FTP server.
public writeFile ( $local, $remote, callable $progress = NULL ) : void
$progress callable
Результат void