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