mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
refactoring (#116)
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
This commit is contained in:
@ -9,17 +9,19 @@
|
||||
/**
|
||||
* Class SSH
|
||||
*
|
||||
* @method static \App\Helpers\SSH init(Server $server, string $asUser = null)
|
||||
* @method static init(Server $server, string $asUser = null)
|
||||
* @method static setLog(string $logType, int $siteId = null)
|
||||
* @method static connect()
|
||||
* @method static exec($commands, string $log = '', int $siteId = null)
|
||||
* @method static string exec(string $command, string $log = '', int $siteId = null)
|
||||
* @method static string assertExecuted(array|string $commands)
|
||||
* @method static string assertExecutedContains(string $command)
|
||||
* @method static disconnect()
|
||||
*/
|
||||
class SSH extends FacadeAlias
|
||||
{
|
||||
public static function fake(): SSHFake
|
||||
public static function fake(?string $output = null): SSHFake
|
||||
{
|
||||
static::swap($fake = new SSHFake());
|
||||
static::swap($fake = new SSHFake($output));
|
||||
|
||||
return $fake;
|
||||
}
|
||||
|
Reference in New Issue
Block a user