mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46: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:
@ -2,11 +2,11 @@
|
||||
|
||||
namespace App\Facades;
|
||||
|
||||
use App\Contracts\Notification;
|
||||
use App\Notifications\NotificationInterface;
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
/**
|
||||
* @method static void send(object $notifiable, Notification $notification)
|
||||
* @method static void send(object $notifiable, NotificationInterface $notification)
|
||||
*/
|
||||
class Notifier extends Facade
|
||||
{
|
||||
|
@ -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