Appearance
Shell
php
interface Zairakai\LaravelDevTools\Update\ShellWhat the update runs on the machine: commands in the project, the environment, the log, and the masking of the tokens.
Source: src/Update/Shell.php
Methods
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): voidA line on the error output: what the check found, for the log of the job.
exec()
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.