mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
init
This commit is contained in:
28
app/SSHCommands/InstallRequirementsCommand.php
Executable file
28
app/SSHCommands/InstallRequirementsCommand.php
Executable file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\SSHCommands;
|
||||
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class InstallRequirementsCommand extends Command
|
||||
{
|
||||
protected $email;
|
||||
|
||||
protected $name;
|
||||
|
||||
public function __construct($email, $name)
|
||||
{
|
||||
$this->email = $email;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function file(string $os): string
|
||||
{
|
||||
return File::get(base_path('system/commands/ubuntu/install-requirements.sh'));
|
||||
}
|
||||
|
||||
public function content(string $os): string
|
||||
{
|
||||
return $this->file($os);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user