mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
migrating tests (DatabaseUser, Firewall and Logs)
This commit is contained in:
@ -155,9 +155,24 @@ public function upload(string $local, string $remote): void
|
||||
if (! $this->connection) {
|
||||
$this->connect(true);
|
||||
}
|
||||
|
||||
$this->connection->put($remote, $local, SFTP::SOURCE_LOCAL_FILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function download(string $local, string $remote): void
|
||||
{
|
||||
$this->log = null;
|
||||
|
||||
if (! $this->connection) {
|
||||
$this->connect(true);
|
||||
}
|
||||
|
||||
$this->connection->get($remote, $local, SFTP::SOURCE_LOCAL_FILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
|
Reference in New Issue
Block a user