mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
29 lines
529 B
PHP
Executable File
29 lines
529 B
PHP
Executable File
<?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);
|
|
}
|
|
}
|