Appearance
ProcessShell
php
final readonly class Zairakai\LaravelDevTools\Update\ProcessShell implements ShellWhat the update runs on the machine: commands in the project, the environment, the log, and the masking of the tokens.
Source: src/Update/ProcessShell.php
Methods
__construct()
php
public function __construct(string $directory)env()
php
public function env(string $name, string $default = ''): stringAn environment variable, or the default one when it is not set or empty.
error()
php
public function error(string $message): voidexec()
php
public function exec(array $command, string $input = null, array $allowed = [0]): string| Parameter | Description |
|---|---|
$allowed | The exit statuses that are not a failure. |
log()
php
public function log(string $message): voidmask()
php
public function mask(string $text): stringremoteUrl()
php
public function remoteUrl(): stringThe URL of the project with the token, to push.