mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
22
app/SSHCommands/SSL/RemoveSSLCommand.php
Executable file
22
app/SSHCommands/SSL/RemoveSSLCommand.php
Executable file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\SSHCommands\SSL;
|
||||
|
||||
use App\SSHCommands\Command;
|
||||
|
||||
class RemoveSSLCommand extends Command
|
||||
{
|
||||
public function __construct(protected string $path)
|
||||
{
|
||||
}
|
||||
|
||||
public function file(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function content(): string
|
||||
{
|
||||
return 'sudo rm -rf '.$this->path.'*'."\n";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user